From d35c003cc53d4723d1dfe0d81eeb9bea78cee594 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 31 Dec 2011 16:01:24 +0100 Subject: new crypter plugin API, now decrypting possible for now. --- module/remote/socketbackend/ttypes.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'module/remote/socketbackend') diff --git a/module/remote/socketbackend/ttypes.py b/module/remote/socketbackend/ttypes.py index 6589e5923..682b2b52a 100644 --- a/module/remote/socketbackend/ttypes.py +++ b/module/remote/socketbackend/ttypes.py @@ -207,13 +207,12 @@ class ServerStatus(BaseObject): self.reconnect = reconnect class ServiceCall(BaseObject): - __slots__ = ['plugin', 'func', 'arguments', 'parseArguments'] + __slots__ = ['plugin', 'func', 'arguments'] - def __init__(self, plugin=None, func=None, arguments=None, parseArguments=None): + def __init__(self, plugin=None, func=None, arguments=None): self.plugin = plugin self.func = func self.arguments = arguments - self.parseArguments = parseArguments class ServiceDoesNotExists(Exception): __slots__ = ['plugin', 'func'] @@ -238,10 +237,16 @@ class UserData(BaseObject): self.permission = permission self.templateName = templateName +class UserDoesNotExists(Exception): + __slots__ = ['user'] + + def __init__(self, user=None): + self.user = user + class Iface: def addFiles(self, pid, links): pass - def addPackage(self, name, links, dest): + def addPackage(self, name, links, dest, password): pass def call(self, info): pass -- cgit v1.2.3