diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-12 18:30:21 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-12 18:30:21 +0200 |
commit | b31eae963850c0de453016c4d1ac52b411e3ecd4 (patch) | |
tree | 141bb5546be26f874eab81de57cf8f461398b4e1 /module/remote/ttypes_debug.py | |
parent | refactored ws handler, generate debug information for ttypes (diff) | |
download | pyload-b31eae963850c0de453016c4d1ac52b411e3ecd4.tar.xz |
create more compact type info for testing
Diffstat (limited to 'module/remote/ttypes_debug.py')
-rw-r--r-- | module/remote/ttypes_debug.py | 202 |
1 files changed, 24 insertions, 178 deletions
diff --git a/module/remote/ttypes_debug.py b/module/remote/ttypes_debug.py index dca54a56a..0e5312fdc 100644 --- a/module/remote/ttypes_debug.py +++ b/module/remote/ttypes_debug.py @@ -6,184 +6,30 @@ from ttypes import * classes = { - -'AccountInfo' : { - 'plugin': basestring, - 'loginname': basestring, - 'owner': int, - 'valid': bool, - 'validuntil': int, - 'trafficleft': int, - 'maxtraffic': int, - 'premium': bool, - 'activated': bool, - 'shared': bool, - 'options': (dict, basestring, basestring), -}, -'AddonInfo' : { - 'func_name': basestring, - 'description': basestring, - 'value': basestring, -}, -'AddonService' : { - 'func_name': basestring, - 'description': basestring, - 'arguments': (list, basestring), - 'media': int, -}, -'ConfigHolder' : { - 'name': basestring, - 'label': basestring, - 'description': basestring, - 'long_description': basestring, - 'items': (list, ConfigItem), - 'info': (list, AddonInfo), - 'handler': (list, InteractionTask), -}, -'ConfigInfo' : { - 'name': basestring, - 'label': basestring, - 'description': basestring, - 'saved': bool, - 'activated': bool, -}, -'ConfigItem' : { - 'name': basestring, - 'label': basestring, - 'description': basestring, - 'type': basestring, - 'default_value': basestring, - 'value': basestring, -}, -'DownloadInfo' : { - 'url': basestring, - 'plugin': basestring, - 'hash': basestring, - 'status': int, - 'statusmsg': basestring, - 'error': basestring, -}, -'DownloadProgress' : { - 'fid': int, - 'pid': int, - 'speed': int, - 'status': int, -}, -'EventInfo' : { - 'eventname': basestring, - 'event_args': (list, basestring), -}, -'FileDoesNotExists' : { - 'fid': int, -}, -'FileInfo' : { - 'fid': int, - 'name': basestring, - 'package': int, - 'owner': int, - 'size': int, - 'status': int, - 'media': int, - 'added': int, - 'fileorder': int, - 'download': DownloadInfo, -}, -'InteractionTask' : { - 'iid': int, - 'input': int, - 'data': (list, basestring), - 'output': int, - 'default_value': basestring, - 'title': basestring, - 'description': basestring, - 'plugin': basestring, -}, -'LinkStatus' : { - 'url': basestring, - 'name': basestring, - 'plugin': basestring, - 'size': int, - 'status': int, - 'packagename': basestring, -}, -'OnlineCheck' : { - 'rid': int, - 'data': (dict, basestring, LinkStatus), -}, -'PackageDoesNotExists' : { - 'pid': int, -}, -'PackageInfo' : { - 'pid': int, - 'name': basestring, - 'folder': basestring, - 'root': int, - 'owner': int, - 'site': basestring, - 'comment': basestring, - 'password': basestring, - 'added': int, - 'tags': (list, basestring), - 'status': int, - 'packageorder': int, - 'stats': PackageStats, - 'fids': (list, int), - 'pids': (list, int), -}, -'PackageStats' : { - 'linkstotal': int, - 'linksdone': int, - 'sizetotal': int, - 'sizedone': int, -}, -'ProgressInfo' : { - 'plugin': basestring, - 'name': basestring, - 'statusmsg': basestring, - 'eta': int, - 'format_eta': basestring, - 'done': int, - 'total': int, - 'download': DownloadProgress, -}, -'ServerStatus' : { - 'pause': bool, - 'active': int, - 'queue': int, - 'total': int, - 'speed': int, - 'download': bool, - 'reconnect': bool, -}, -'ServiceDoesNotExists' : { - 'plugin': basestring, - 'func': basestring, -}, -'ServiceException' : { - 'msg': basestring, -}, -'TreeCollection' : { - 'root': PackageInfo, - 'files': (dict, int, FileInfo), - 'packages': (dict, int, PackageInfo), -}, -'UserData' : { - 'uid': int, - 'name': basestring, - 'email': basestring, - 'role': int, - 'permission': int, - 'folder': basestring, - 'traffic': int, - 'dllimit': int, - 'dlquota': basestring, - 'hddquota': int, - 'user': int, - 'templateName': basestring, -}, -'UserDoesNotExists' : { - 'user': basestring, -}, + 'AccountInfo' : [basestring, basestring, int, bool, int, int, int, bool, bool, bool, (dict, basestring, basestring)], + 'AddonInfo' : [basestring, basestring, basestring], + 'AddonService' : [basestring, basestring, (list, basestring), (None, int)], + 'ConfigHolder' : [basestring, basestring, basestring, basestring, (list, ConfigItem), (None, (list, AddonInfo)), (None, (list, InteractionTask))], + 'ConfigInfo' : [basestring, basestring, basestring, bool, bool], + 'ConfigItem' : [basestring, basestring, basestring, basestring, (None, basestring), basestring], + 'DownloadInfo' : [basestring, basestring, basestring, int, basestring, basestring], + 'DownloadProgress' : [int, int, int, int], + 'EventInfo' : [basestring, (list, basestring)], + '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], + 'LinkStatus' : [basestring, basestring, basestring, int, int, basestring], + 'OnlineCheck' : [int, (dict, basestring, LinkStatus)], + 'PackageDoesNotExists' : [int], + 'PackageInfo' : [int, basestring, basestring, int, int, basestring, basestring, basestring, int, (list, basestring), int, int, PackageStats, (list, int), (list, int)], + 'PackageStats' : [int, int, int, int], + 'ProgressInfo' : [basestring, basestring, basestring, int, basestring, int, int, (None, DownloadProgress)], + 'ServerStatus' : [bool, int, int, int, int, bool, bool], + 'ServiceDoesNotExists' : [basestring, basestring], + 'ServiceException' : [basestring], + 'TreeCollection' : [PackageInfo, (dict, int, FileInfo), (dict, int, PackageInfo)], + 'UserData' : [int, basestring, basestring, int, int, basestring, int, int, basestring, int, int, basestring], + 'UserDoesNotExists' : [basestring], } methods = { |