Ajout de la position, c'etait le but...

darcs-hash:20051111172534-d1718-391d8df3eab44ab6f702e547c046b83124bc55b8.gz
This commit is contained in:
bernat 2005-11-11 18:25:34 +01:00
parent cd96de5ff4
commit fb09ea40a0

View file

@ -58,6 +58,10 @@ for b in bornes:
print ' <uptime>%s</clients>' % uptimes[nom]
except KeyError:
pass
position = filter(lambda x: x.startswith("<position>"), b.info())
if position:
position = position[0].replace("<position>","").split(" ")
print ' <position x="%s" y="%s" />' % (position[0], position[1])
print '</borne>'
print '</bornes>'