From e00ef98491f79ae8aa972ae1473dae4a7b78c07e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 17:20:59 +0200 Subject: Cleanup --- pyload/plugin/Addon.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyload/plugin/Addon.py') diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py index 1f4730851..35f010f29 100644 --- a/pyload/plugin/Addon.py +++ b/pyload/plugin/Addon.py @@ -16,6 +16,7 @@ class Expose(object): def threaded(fn): + def run(*args,**kwargs): addonManager.startThread(fn, *args, **kwargs) @@ -111,6 +112,7 @@ class Addon(Base): if has_method(self.__class__, "unload"): self.unload() + def unload(self): # Deprecated, use method deactivate() instead pass @@ -121,11 +123,14 @@ class Addon(Base): # Event methods - overwrite these if needed + + def activate(self): """ called when addon was activated """ if has_method(self.__class__, "coreReady"): self.coreReady() + def coreReady(self): # Deprecated, use method activate() instead pass @@ -135,6 +140,7 @@ class Addon(Base): if has_method(self.__class__, "coreExiting"): self.coreExiting() + def coreExiting(self): # Deprecated, use method exit() instead pass -- cgit v1.2.3