summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Addon.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-30 03:04:52 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-30 03:04:52 +0100
commitc6ba3ae11f9296108a297fc78ae68f3c8461a3da (patch)
treed2cec1679a3fad86c114867037ba29e5fd97d0c1 /module/plugins/internal/Addon.py
parent[ClickNLoad] Fix false reporting of unclean shutdown on python 2.5 (diff)
downloadpyload-c6ba3ae11f9296108a297fc78ae68f3c8461a3da.tar.xz
[misc] Move `threaded`, `Expose` form Addon to misc
Diffstat (limited to 'module/plugins/internal/Addon.py')
-rw-r--r--module/plugins/internal/Addon.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py
index cf7321893..8dee04811 100644
--- a/module/plugins/internal/Addon.py
+++ b/module/plugins/internal/Addon.py
@@ -6,26 +6,10 @@ from module.plugins.internal.Plugin import Plugin
from module.plugins.internal.misc import Periodical, isiterable
-def threaded(fn):
- def run(*args, **kwargs):
- hookManager.startThread(fn, *args, **kwargs)
-
- return run
-
-
-class Expose(object):
- """
- Used for decoration to declare rpc services
- """
- def __new__(cls, fn, *args, **kwargs):
- hookManager.addRPC(fn.__module__, fn.func_name, fn.func_doc)
- return fn
-
-
class Addon(Plugin):
__name__ = "Addon"
__type__ = "hook" #@TODO: Change to `addon` in 0.4.10
- __version__ = "0.51"
+ __version__ = "0.52"
__status__ = "stable"
__threaded__ = [] #@TODO: Remove in 0.4.10