git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9d95ef
)
Modified 'mobile' parameter of a node.
author
Sandrine Avakian
<sandrine.avakian@inria.fr>
Tue, 17 Jul 2012 14:08:08 +0000
(16:08 +0200)
committer
Sandrine Avakian
<sandrine.avakian@inria.fr>
Tue, 17 Jul 2012 14:08:08 +0000
(16:08 +0200)
Value is set to string "False" or "True" instead
of integer.
sfa/senslab/OARrestapi.py
patch
|
blob
|
history
diff --git
a/sfa/senslab/OARrestapi.py
b/sfa/senslab/OARrestapi.py
index
6dba335
..
52bcc13
100644
(file)
--- a/
sfa/senslab/OARrestapi.py
+++ b/
sfa/senslab/OARrestapi.py
@@
-157,8
+157,10
@@
def AddNodeRadio(tuplelist, value):
def AddMobility(tuplelist, value):
- if value :
- tuplelist.append(('mobile', int(value)))
+ if value is 0:
+ tuplelist.append(('mobile', 'False'))
+ else :
+ tuplelist.append(('mobile', 'True'))
def AddPosX(tuplelist, value):
tuplelist.append(('posx', value))