summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/thriftgen
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/thriftgen')
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote8
-rw-r--r--module/remote/thriftbackend/thriftgen/pyload/Pyload.py21
2 files changed, 18 insertions, 11 deletions
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index 6c8116d92..0251fbeae 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -41,7 +41,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' bool toggleReconnect()'
print ' generatePackages(LinkList links)'
print ' checkURLs(LinkList urls)'
- print ' parseURLs(string html)'
+ print ' parseURLs(string html, string url)'
print ' OnlineCheck checkOnlineStatus(LinkList urls)'
print ' OnlineCheck checkOnlineStatusContainer(LinkList urls, string filename, string data)'
print ' OnlineCheck pollResults(ResultID rid)'
@@ -251,10 +251,10 @@ elif cmd == 'checkURLs':
pp.pprint(client.checkURLs(eval(args[0]),))
elif cmd == 'parseURLs':
- if len(args) != 1:
- print 'parseURLs requires 1 args'
+ if len(args) != 2:
+ print 'parseURLs requires 2 args'
sys.exit(1)
- pp.pprint(client.parseURLs(args[0],))
+ pp.pprint(client.parseURLs(args[0],args[1],))
elif cmd == 'checkOnlineStatus':
if len(args) != 1:
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
index a29eed62f..828ff520d 100644
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload.py
@@ -9,7 +9,7 @@
from thrift.Thrift import TType, TMessageType
from ttypes import *
from thrift.Thrift import TProcessor
-from thrift.protocol.TBase import TBase, TExceptionBase
+from thrift.protocol.TBase import TBase, TExceptionBase, TApplicationException
class Iface(object):
@@ -92,10 +92,11 @@ class Iface(object):
"""
pass
- def parseURLs(self, html):
+ def parseURLs(self, html, url):
"""
Parameters:
- html
+ - url
"""
pass
@@ -905,18 +906,20 @@ class Client(Iface):
return result.success
raise TApplicationException(TApplicationException.MISSING_RESULT, "checkURLs failed: unknown result");
- def parseURLs(self, html):
+ def parseURLs(self, html, url):
"""
Parameters:
- html
+ - url
"""
- self.send_parseURLs(html)
+ self.send_parseURLs(html, url)
return self.recv_parseURLs()
- def send_parseURLs(self, html):
+ def send_parseURLs(self, html, url):
self._oprot.writeMessageBegin('parseURLs', TMessageType.CALL, self._seqid)
args = parseURLs_args()
args.html = html
+ args.url = url
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
@@ -2678,7 +2681,7 @@ class Processor(Iface, TProcessor):
args.read(iprot)
iprot.readMessageEnd()
result = parseURLs_result()
- result.success = self._handler.parseURLs(args.html)
+ result.success = self._handler.parseURLs(args.html, args.url)
oprot.writeMessageBegin("parseURLs", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
@@ -3769,19 +3772,23 @@ class parseURLs_args(TBase):
"""
Attributes:
- html
+ - url
"""
__slots__ = [
'html',
+ 'url',
]
thrift_spec = (
None, # 0
(1, TType.STRING, 'html', None, None, ), # 1
+ (2, TType.STRING, 'url', None, None, ), # 2
)
- def __init__(self, html=None,):
+ def __init__(self, html=None, url=None,):
self.html = html
+ self.url = url
class parseURLs_result(TBase):