summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-13 17:40:10 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-13 17:40:10 +0200
commit941e3021000e59020f66419cc2156aee30972121 (patch)
tree49332fb148dd50c0ee78e4c20336c2848921bc1a /module/remote
parentmerge (diff)
downloadpyload-941e3021000e59020f66419cc2156aee30972121.tar.xz
working login
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/thriftbackend/Processor.py1
-rw-r--r--module/remote/thriftbackend/pyload.thrift15
2 files changed, 9 insertions, 7 deletions
diff --git a/module/remote/thriftbackend/Processor.py b/module/remote/thriftbackend/Processor.py
index a8b87c82c..6f822e98f 100644
--- a/module/remote/thriftbackend/Processor.py
+++ b/module/remote/thriftbackend/Processor.py
@@ -2,6 +2,7 @@
from thriftgen.pyload import Pyload
+#TODO: new login
class Processor(Pyload.Processor):
def __init__(self, *args, **kwargs):
Pyload.Processor.__init__(self, *args, **kwargs)
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index e0fa9c040..c628dff78 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -51,20 +51,22 @@ enum FileStatus {
enum PackageStatus {
Ok,
Paused,
+ Folder,
Remote,
}
// types for user interaction
// some may only be place holder currently not supported
// also all input - output combination are not reasonable, see InteractionManager for further info
+// Todo: how about: time, int, ip, file, s.o.
enum Input {
NA,
Text,
- TextBox,
+ Textbox,
Password,
Bool, // confirm like, yes or no dialog
Click, // for positional captchas
- Choice, // choice from list
+ Select, // select from list
Multiple, // multiple choice from list of elements
List, // arbitary list of elements
Table // table like data structure
@@ -85,11 +87,10 @@ enum Permission {
Add = 1, // can add packages
Delete = 2, // can delete packages
Modify = 4, // modify some attribute of downloads
- Status = 8, // see and change server status
- Download = 16, // can download from webinterface
- Accounts = 32, // can access accounts
- Interaction = 64, // can interact with plugins
- Addons = 128 // user can activate addons
+ Download = 8, // can download from webinterface
+ Accounts = 16, // can access accounts
+ Interaction = 32, // can interact with plugins
+ Addons = 64 // user can activate addons
}
enum Role {