summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/Base.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-08 21:32:09 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-08 21:32:09 +0100
commit2d52cee8e1d7748d013fd53c3bc56e437ce8f864 (patch)
tree24be10b03fc41ed5c1242c103699953393ddd804 /pyload/plugins/Base.py
parentmore fixes for older plugins (diff)
downloadpyload-2d52cee8e1d7748d013fd53c3bc56e437ce8f864.tar.xz
workaround for older plugins
Diffstat (limited to 'pyload/plugins/Base.py')
-rw-r--r--pyload/plugins/Base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/Base.py b/pyload/plugins/Base.py
index b6668ea90..4d77fe4b2 100644
--- a/pyload/plugins/Base.py
+++ b/pyload/plugins/Base.py
@@ -77,7 +77,7 @@ class Base(object):
__author_mail__ = tuple()
- def __init__(self, core, user=None):
+ def __init__(self, core, owner=None):
self.__name__ = self.__class__.__name__
#: Core instance
@@ -90,17 +90,17 @@ class Base(object):
self.evm = core.eventManager
#: :class:`InteractionManager`
self.im = core.interactionManager
- if user is not None:
+ if owner is not None:
#: :class:`Api`, user api when user is set
self.api = self.core.api.withUserContext(user)
if not self.api:
raise Exception("Plugin running with invalid user")
#: :class:`User`, user related to this plugin
- self.user = self.api.user
+ self.owner = self.api.user
else:
self.api = self.core.api
- self.user = None
+ self.owner = None
#: last interaction task
self.task = None