From b1fffc3a1b2dbbb807213b85f538e59251b9bf35 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 28 Mar 2014 22:32:14 +0100 Subject: Remove bad whitespaces Merged vuolter/pyload@00288e6 --- docs/write_hooks.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/write_hooks.rst') 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. -- cgit v1.2.3