summaryrefslogtreecommitdiffstats
path: root/pyload/remote/apitypes.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-08 17:38:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-08 17:38:35 +0200
commit52f6599748ef61219112111dc5db71f3342b076d (patch)
treee3627ded64b7e98493ca1ec7bd182aaa1774252e /pyload/remote/apitypes.py
parentMultiHosters: moved settings to addon plugins. (diff)
downloadpyload-52f6599748ef61219112111dc5db71f3342b076d.tar.xz
adapted account api to multi user, fixed http referer bug
Diffstat (limited to 'pyload/remote/apitypes.py')
-rw-r--r--pyload/remote/apitypes.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/pyload/remote/apitypes.py b/pyload/remote/apitypes.py
index 0d9e35963..385f4ca07 100644
--- a/pyload/remote/apitypes.py
+++ b/pyload/remote/apitypes.py
@@ -97,9 +97,9 @@ class Role:
User = 1
class AccountInfo(BaseObject):
- __slots__ = ['plugin', 'loginname', 'owner', 'valid', 'validuntil', 'trafficleft', 'maxtraffic', 'premium', 'activated', 'shared', 'options']
+ __slots__ = ['plugin', 'loginname', 'owner', 'valid', 'validuntil', 'trafficleft', 'maxtraffic', 'premium', 'activated', 'shared', 'config']
- def __init__(self, plugin=None, loginname=None, owner=None, valid=None, validuntil=None, trafficleft=None, maxtraffic=None, premium=None, activated=None, shared=None, options=None):
+ def __init__(self, plugin=None, loginname=None, owner=None, valid=None, validuntil=None, trafficleft=None, maxtraffic=None, premium=None, activated=None, shared=None, config=None):
self.plugin = plugin
self.loginname = loginname
self.owner = owner
@@ -110,7 +110,7 @@ class AccountInfo(BaseObject):
self.premium = premium
self.activated = activated
self.shared = shared
- self.options = options
+ self.config = config
class AddonInfo(BaseObject):
__slots__ = ['func_name', 'description', 'value']
@@ -161,6 +161,9 @@ class ConfigItem(BaseObject):
self.input = input
self.value = value
+class Conflict(ExceptionObject):
+ pass
+
class DownloadInfo(BaseObject):
__slots__ = ['url', 'plugin', 'hash', 'status', 'statusmsg', 'error']
@@ -415,9 +418,11 @@ class Iface(object):
pass
def generatePackages(self, links):
pass
+ def getAccountInfo(self, plugin, loginname, refresh):
+ pass
def getAccountTypes(self):
pass
- def getAccounts(self, refresh):
+ def getAccounts(self):
pass
def getAddonHandler(self):
pass
@@ -525,7 +530,7 @@ class Iface(object):
pass
def unpauseServer(self):
pass
- def updateAccount(self, plugin, login, password):
+ def updateAccount(self, plugin, loginname, password):
pass
def updateAccountInfo(self, account):
pass