Commit ab9b53d1 authored by chove's avatar chove

utilisation de get dans toute sa puissance

correction d'un bug, la methode ne marchait pas du tout :-(

darcs-hash:20060501101433-4ec08-b032d0cf1a384817203750ffcb82ff58193eca01.gz
parent 384fdff0
......@@ -2872,7 +2872,7 @@ class BorneWifi(Machine):
On utilise des strings plutt que des floats cause de la prcision.
"""
if new == False:
valeur = (self._data.get('positionBorne') or [''])[0]
valeur = self._data.get('positionBorne',[''])[0]
if valeur:
return tuple(valeur.split(' '))
else:
......@@ -2883,7 +2883,7 @@ class BorneWifi(Machine):
return None
else:
self._set('positionBorne', ' '.join(new))
self._set('positionBorne', [' '.join(new)])
return new
def nvram(self, champ=None, new=False):
......
Markdown is supported
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