summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-12 18:04:24 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-12 18:04:24 +0100
commit5a6bcc04e4a0b0088b7ca08c2a782fbc1212d674 (patch)
treecdbdda06598c0f2dd85273b2f32642e1ab1a5405 /module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
parentFileserveCom: Fixes download check (diff)
downloadpyload-5a6bcc04e4a0b0088b7ca08c2a782fbc1212d674.tar.xz
GUI refactoring (now Thrift powered), closes #233
please test!
Diffstat (limited to 'module/remote/thriftbackend/thriftgen/pyload/Pyload-remote')
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote21
1 files changed, 14 insertions, 7 deletions
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index bf52facff..f8e047e49 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -68,8 +68,9 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' CaptchaTask getCaptchaTask(bool exclusive)'
print ' string getCaptchaTaskStatus(TaskID tid)'
print ' void setCaptchaResult(TaskID tid, string result)'
- print ' getEvents()'
- print ' getAccounts()'
+ print ' getEvents(string uuid)'
+ print ' getAccounts(bool refresh)'
+ print ' getAccountTypes()'
print ' void updateAccounts(AccountData data)'
print ' void removeAccount(string plugin, string account)'
print ' bool login(string username, string password)'
@@ -407,16 +408,22 @@ elif cmd == 'setCaptchaResult':
pp.pprint(client.setCaptchaResult(eval(args[0]),args[1],))
elif cmd == 'getEvents':
- if len(args) != 0:
- print 'getEvents requires 0 args'
+ if len(args) != 1:
+ print 'getEvents requires 1 args'
sys.exit(1)
- pp.pprint(client.getEvents())
+ pp.pprint(client.getEvents(args[0],))
elif cmd == 'getAccounts':
+ if len(args) != 1:
+ print 'getAccounts requires 1 args'
+ sys.exit(1)
+ pp.pprint(client.getAccounts(eval(args[0]),))
+
+elif cmd == 'getAccountTypes':
if len(args) != 0:
- print 'getAccounts requires 0 args'
+ print 'getAccountTypes requires 0 args'
sys.exit(1)
- pp.pprint(client.getAccounts())
+ pp.pprint(client.getAccountTypes())
elif cmd == 'updateAccounts':
if len(args) != 1: