Position des bornes avec position()

darcs-hash:20060318073550-d1718-ab139e162ae7701dc2b8f777546faf5bf8bf08b7.gz
This commit is contained in:
bernat 2006-03-18 08:35:50 +01:00
parent bbe17b43dd
commit 585af6dac7

View file

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