Commit 35beaaeb authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

Correct serverInterface

parent d3f06a03
......@@ -11,21 +11,21 @@ class ServerInterface(object):
def readData(self, ioFunction, dataName, *args, **kwargs):
content = '['+str(dataName)+', '+ioFunction.__name__+', '+str(args)+', '+str(kwargs)+']'
content = "['"+str(dataName)+"', '"+ioFunction.__name__+"', '"+str(args)+"', '"+str(kwargs)+"']"
signal = "("+'readData'+', '+str(content)+')'
signal = "("+"'readData'"+', '+str(content)+')'
# create signal
sock = self.sendSignal(signal)
(answer, errmsg) = self.waitForAnswer(sock)
dataName = answer
answer = self.waitForAnswer(sock)
header, content, errmsg = eval(answer)
dataName = content
# add data in the currentSyncData interface
if dataName is None:
print(SEVR+errmsg)
status=False
else:
self.currentSyncData.append(dataName)
self.currentRemoteData.append(dataName)
status=True
return(True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment