[printing] On arrive à un compromis entre une erreur lisible et éviter l'import de ldap_crans
This commit is contained in:
parent
5ff3453963
commit
32f51593b6
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@ def try_import(lib):
|
|||
lib = None
|
||||
return lib
|
||||
|
||||
|
||||
def prise_etat(chbre):
|
||||
# Ici, on utilise le module gestion importé
|
||||
# Il faudrait remplacer cet import là par une
|
||||
# fonction prise_etat propre à lc_ldap, pour
|
||||
# ne plus en avoir besoin ci-après.
|
||||
gestion.whos = try_import(u"gestion.whos")
|
||||
|
||||
def prise_etat(chbre):
|
||||
gestion.whos = try_import(u"gestion.whos")
|
||||
if chbre=="????":
|
||||
return coul("Chambre invalide", "violet")
|
||||
return gestion.whos.prise_etat(chbre)[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue