Correction du sens x,y
Date lisible darcs-hash:20051111205549-d1718-feefcef31bb64c1bfba70d44f41346de26ed4d77.gz
This commit is contained in:
parent
83380da0ed
commit
95dc6696f7
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ from ldap_crans import crans_ldap
|
|||
l = crans_ldap()
|
||||
|
||||
# On commence le fichier XML
|
||||
print '<bornes date="%d">' % time.time()
|
||||
print '<bornes date="%d">' % time.strftime("%c")
|
||||
|
||||
# On récupère l'ensemble des bornes
|
||||
bornes = l.search('host=*.wifi.crans.org&canal=*')['machine']
|
||||
|
@ -61,7 +61,7 @@ for b in bornes:
|
|||
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 ' <position x="%s" y="%s" />' % (position[1], position[0])
|
||||
print '</borne>'
|
||||
|
||||
print '</bornes>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue