diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
commit | e00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch) | |
tree | 31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/plugin/Addon.py | |
parent | Fix except (diff) | |
download | pyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz |
Cleanup
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r-- | pyload/plugin/Addon.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |