summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
commit5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 (patch)
treeb3f80dbd9e759747f9c2acb60f614c5daa7af69e /module/plugins/Hook.py
parentFix class definition (diff)
downloadpyload-5060e4c6374a5116d0d8b02528f910f8c5f8bcf9.tar.xz
Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 6f5abffed..b9c7b832f 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -22,6 +22,7 @@ from traceback import print_exc
from Plugin import Base
+
class Expose(object):
""" used for decoration to declare rpc services """
@@ -29,11 +30,14 @@ class Expose(object):
hookManager.addRPC(f.__module__, f.func_name, f.func_doc)
return f
+
def threaded(f):
+
def run(*args,**kwargs):
hookManager.startThread(f, *args, **kwargs)
return run
+
class Hook(Base):
"""
Base class for hook plugins.