summaryrefslogtreecommitdiffstats
path: root/docs/write_hooks.rst
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-03-28 22:32:14 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 02:47:08 +0200
commitb1fffc3a1b2dbbb807213b85f538e59251b9bf35 (patch)
treec373d3234dcb474bb424371a3d89341bed8a9e07 /docs/write_hooks.rst
parentPlugins licensing doc (diff)
downloadpyload-b1fffc3a1b2dbbb807213b85f538e59251b9bf35.tar.xz
Remove bad whitespaces
Merged vuolter/pyload@00288e6
Diffstat (limited to 'docs/write_hooks.rst')
-rw-r--r--docs/write_hooks.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/write_hooks.rst b/docs/write_hooks.rst
index dd60367b7..f17e91ce5 100644
--- a/docs/write_hooks.rst
+++ b/docs/write_hooks.rst
@@ -26,7 +26,7 @@ All Hooks should start with something like this: ::
__threaded__ = ["downloadFinished"]
__author_name__ = ("Me")
__author_mail__ = ("me@has-no-mail.com")
-
+
All meta-data is defined in the header, you need at least one option at ``__config__`` so the user can toggle your
hook on and off. Dont't overwrite the ``init`` method if not neccesary, use ``setup`` instead.
@@ -117,7 +117,7 @@ Sounds complicated but is very easy to do. Just use the ``Expose`` decorator: ::
"""
Your Hook code here.
"""
-
+
@Expose
def invoke(self, arg):
print "Invoked with", arg
@@ -158,5 +158,5 @@ Usable with: ::
Example
-------
Sorry but you won't find an example here ;-)
-
+
Look at :file:`module/plugins/hooks` and you will find plenty examples there.