Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
myplotlib
Commits
35beaaeb
Commit
35beaaeb
authored
Aug 28, 2017
by
Yori 'AGy' Fournier
Browse files
Correct serverInterface
parent
d3f06a03
Changes
1
Hide whitespace changes
Inline
Side-by-side
serverInterface.py
View file @
35beaaeb
...
...
@@ -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
.
current
Sync
Data
.
append
(
dataName
)
self
.
current
Remote
Data
.
append
(
dataName
)
status
=
True
return
(
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment