|
@@ -59,10 +59,7 @@ class ConstructorsObjectVisitor(ConstructorsVisitor):
|
|
|
urllib2.urlopen(urllib2.Request("http://localhost:8001/", urllib.urlencode({"op": "set_input", "element_type": "V", "value": '"%s"' % self.hash_file, "username": self.username}))).read()
|
|
|
urllib2.urlopen(urllib2.Request("http://localhost:8001/", urllib.urlencode({"op": "set_input", "element_type": "V", "value": 'true', "username": self.username}))).read() # Use new interface
|
|
|
|
|
|
- print("Uploading!")
|
|
|
-
|
|
|
def flush_data(data):
|
|
|
- print("Send " + str(data))
|
|
|
if data:
|
|
|
urllib2.urlopen(urllib2.Request("http://localhost:8001/", urllib.urlencode({"op": "set_input", "data": json.dumps(data), "username": self.username})), timeout=timeout).read()
|
|
|
return []
|