Ajout de la position, c'etait le but...
darcs-hash:20051111172534-d1718-391d8df3eab44ab6f702e547c046b83124bc55b8.gz
This commit is contained in:
parent
cd96de5ff4
commit
fb09ea40a0
1 changed files with 4 additions and 0 deletions
|
@ -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>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue