diff options
Diffstat (limited to 'docs/write_hooks.rst')
-rw-r--r-- | docs/write_hooks.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/write_hooks.rst b/docs/write_hooks.rst index f17e91ce5..351b9af39 100644 --- a/docs/write_hooks.rst +++ b/docs/write_hooks.rst @@ -35,7 +35,7 @@ Using the Config We are taking a closer look at the ``__config__`` parameter. You can add more config values as desired by adding tuples of the following format to the config list: ``("name", "type", "description", "default value")``. -When everything went right you can access the config values with ``self.getConfig(name)`` and ``self.setConfig(name,value``. +When everything went right you can access the config values with ``self.getConfig(name)`` and ``self.setConfig(name, value``. Interacting on Events @@ -81,7 +81,7 @@ It requires a `dict` that maps event names to function names or a `list` of func """ Your Hook code here. """ - event_map = {"downloadFinished" : "doSomeWork", + event_map = {"downloadFinished": "doSomeWork", "allDownloadsFnished": "someMethod", "coreReady": "initialize"} |