-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated references and other small things in the documentation
- Loading branch information
Showing
9 changed files
with
76 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,11 +155,11 @@ And to make the the results look nicer in an email message, you can switch to us | |
|
||
|
||
class ApplicationComponent(CLIApplicationComponent): | ||
async def start(self, ctx: Context) -> None: | ||
async def start(self) -> None: | ||
self.add_component( | ||
"mailer", backend="smtp", host="your.smtp.server.here", | ||
message_defaults={"sender": "[email protected]", "to": "[email protected]"}) | ||
await super().start(ctx) | ||
await super().start() | ||
|
||
@inject | ||
async def run(self, *, mailer: Mailer = resource()) -> None: | ||
|
@@ -272,7 +272,7 @@ Asphalt application:: | |
self.delay = delay | ||
|
||
@context_teardown | ||
async def start(self, ctx: Context) -> None: | ||
async def start(self) -> None: | ||
detector = Detector(self.url, self.delay) | ||
await ctx.add_resource(detector) | ||
start_service_task(detector.run, "Web page change detector") | ||
|
@@ -298,7 +298,7 @@ become somewhat lighter:: | |
|
||
|
||
class ApplicationComponent(CLIApplicationComponent): | ||
async def start(self, ctx: Context) -> None: | ||
async def start(self) -> None: | ||
self.add_component("detector", ChangeDetectorComponent, url="http://imgur.com") | ||
self.add_component( | ||
"mailer", backend="smtp", host="your.smtp.server.here", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.