diff options
author | 2012-10-13 22:27:10 +0200 | |
---|---|---|
committer | 2012-10-13 22:27:10 +0200 | |
commit | 46173e352cf3c55ecf9f5892ff83d78c1996da77 (patch) | |
tree | 502236eecfbdad2fee6b83f5147135c4b76ba21f /module/remote/ttypes.py | |
parent | added JSON and WS client, re organized tests, new classes for easier api tests (diff) | |
download | pyload-46173e352cf3c55ecf9f5892ff83d78c1996da77.tar.xz |
added exceptions for clients, created test for WS client
Diffstat (limited to 'module/remote/ttypes.py')
-rw-r--r-- | module/remote/ttypes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/remote/ttypes.py b/module/remote/ttypes.py index ecff45170..0412c3709 100644 --- a/module/remote/ttypes.py +++ b/module/remote/ttypes.py @@ -198,6 +198,9 @@ class FileInfo(BaseObject): self.fileorder = fileorder self.download = download +class Forbidden(Exception): + pass + class InteractionTask(BaseObject): __slots__ = ['iid', 'input', 'data', 'output', 'default_value', 'title', 'description', 'plugin'] @@ -310,6 +313,9 @@ class TreeCollection(BaseObject): self.files = files self.packages = packages +class Unauthorized(Exception): + pass + class UserData(BaseObject): __slots__ = ['uid', 'name', 'email', 'role', 'permission', 'folder', 'traffic', 'dllimit', 'dlquota', 'hddquota', 'user', 'templateName'] |