From 2ff2fb0495febe11d5015d2308d67e1d8048e597 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 10 Apr 2014 13:37:02 +0200 Subject: Some code cosmetics about commas, spaces and quotes Merges #577 --- docs/write_hooks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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"} -- cgit v1.2.3