[annuaires_pg] Ajout d'une fonction indiquant si le brassage de la prise est correct
Ignore-this: 84ddf3515b991c1b12690ea028fcc797 darcs-hash:20100907130825-b8e4c-11e4339bb2d50e5d2dc2023fe2ddb19a5069752d.gz
This commit is contained in:
parent
c64c89ddd3
commit
d44a729395
1 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,14 @@ def is_crans(batiment, chambre):
|
||||||
cur.execute("SELECT crans FROM prises WHERE (batiment, chambre) = (%s, %s)", (batiment, chambre))
|
cur.execute("SELECT crans FROM prises WHERE (batiment, chambre) = (%s, %s)", (batiment, chambre))
|
||||||
return cur.fetchone()[0]
|
return cur.fetchone()[0]
|
||||||
|
|
||||||
|
def is_connected(batiment, chambre):
|
||||||
|
"""Cablage physique effectue ?"""
|
||||||
|
batiment = batiment.lower()
|
||||||
|
chambre = chambre.lower()
|
||||||
|
cur = conn.cursor()
|
||||||
|
cur.execute("SELECT cablage_effectue FROM prises WHERE (batiment, chambre) = (%s, %s)", (batiment, chambre))
|
||||||
|
return cur.fetchone()[0]
|
||||||
|
|
||||||
def crous_to_crans(batiment, chambre):
|
def crous_to_crans(batiment, chambre):
|
||||||
"""Passage d'une chambre de CROUS a Cr@ns"""
|
"""Passage d'une chambre de CROUS a Cr@ns"""
|
||||||
batiment = batiment.lower()
|
batiment = batiment.lower()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue