summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/thriftgen
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-11 19:14:30 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-11 19:14:30 +0200
commitad7dcc3f9ed360769d7b53d8a06d1222c8374fa7 (patch)
tree5f923f676f3846b32098cbe4057262d301eee96d /module/remote/thriftbackend/thriftgen
parentdisabled js debug (diff)
downloadpyload-ad7dcc3f9ed360769d7b53d8a06d1222c8374fa7.tar.xz
pavement build script
Diffstat (limited to 'module/remote/thriftbackend/thriftgen')
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote5
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/Pyload.py2
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/constants.py2
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/ttypes.py2
4 files changed, 6 insertions, 5 deletions
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index 8c3390438..e2e56d5ca 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -20,7 +20,7 @@ from ttypes import *
if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ''
- print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
+ print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
print ''
print 'Functions:'
print ' string getConfigValue(string category, string option, string section)'
@@ -107,7 +107,8 @@ argi = 1
if sys.argv[argi] == '-h':
parts = sys.argv[argi+1].split(':')
host = parts[0]
- port = int(parts[1])
+ if len(parts) > 1:
+ port = int(parts[1])
argi += 2
if sys.argv[argi] == '-u':
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
index d54cfaedd..677e4afe2 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
@@ -6,7 +6,7 @@
# options string: py:slots,dynamic
#
-from thrift.Thrift import TType, TMessageType
+from thrift.Thrift import TType, TMessageType, TException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.protocol.TBase import TBase, TExceptionBase, TApplicationException
diff --git a/module/remote/thriftbackend/thriftgen/pyload/constants.py b/module/remote/thriftbackend/thriftgen/pyload/constants.py
index 1ca9842ff..f5ef663f1 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/constants.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/constants.py
@@ -6,6 +6,6 @@
# options string: py:slots,dynamic
#
-from thrift.Thrift import TType, TMessageType
+from thrift.Thrift import TType, TMessageType, TException
from ttypes import *
diff --git a/module/remote/thriftbackend/thriftgen/pyload/ttypes.py b/module/remote/thriftbackend/thriftgen/pyload/ttypes.py
index 204090577..626bd1c29 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/ttypes.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/ttypes.py
@@ -6,7 +6,7 @@
# options string: py:slots,dynamic
#
-from thrift.Thrift import TType, TMessageType
+from thrift.Thrift import TType, TMessageType, TException
from thrift.protocol.TBase import TBase, TExceptionBase