summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
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.