From 6b20f5f6c063e4e6c94d719b607ad5a028b8beee Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 2 Jan 2013 18:11:31 +0100 Subject: new configManager for multi user configs --- module/remote/pyload.thrift | 4 ++++ module/remote/ttypes.py | 6 ++++++ module/remote/ttypes_debug.py | 1 + 3 files changed, 11 insertions(+) (limited to 'module/remote') diff --git a/module/remote/pyload.thrift b/module/remote/pyload.thrift index 183fd3af8..47c371904 100644 --- a/module/remote/pyload.thrift +++ b/module/remote/pyload.thrift @@ -315,6 +315,10 @@ exception ServiceException { 1: string msg } +exception InvalidConfigSection { + 1: string section +} + exception Unauthorized { } diff --git a/module/remote/ttypes.py b/module/remote/ttypes.py index eb990f2e8..d661c684a 100644 --- a/module/remote/ttypes.py +++ b/module/remote/ttypes.py @@ -220,6 +220,12 @@ class InteractionTask(BaseObject): self.description = description self.plugin = plugin +class InvalidConfigSection(Exception): + __slots__ = ['section'] + + def __init__(self, section=None): + self.section = section + class LinkStatus(BaseObject): __slots__ = ['url', 'name', 'plugin', 'size', 'status', 'packagename'] diff --git a/module/remote/ttypes_debug.py b/module/remote/ttypes_debug.py index 807a8451b..1e04624d9 100644 --- a/module/remote/ttypes_debug.py +++ b/module/remote/ttypes_debug.py @@ -18,6 +18,7 @@ classes = { 'FileDoesNotExists' : [int], 'FileInfo' : [int, basestring, int, int, int, int, int, int, int, (None, DownloadInfo)], 'InteractionTask' : [int, int, (list, basestring), int, (None, basestring), basestring, basestring, basestring], + 'InvalidConfigSection' : [basestring], 'LinkStatus' : [basestring, basestring, basestring, int, int, basestring], 'OnlineCheck' : [int, (dict, basestring, LinkStatus)], 'PackageDoesNotExists' : [int], -- cgit v1.2.3