Commit ef07bc5a authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

Commentaires dans CPS, à étoffer un peu. Et léger typofix.

parent 890a1067
This diff is collapsed.
......@@ -723,19 +723,19 @@ class Dialog(proprio.Dialog):
def set_chambre(adherent, chbre):
adherent['postalAddress'] = []
adherent['chbre'] = unicode(output, 'utf-8')
adherent['chbre'] = unicode(chbre, 'utf-8')
except UniquenessError:
if expulse_squatteur(adherent, chbre):
# La chambre est maintenant normalement libre
adherent['chbre'] = unicode(output, 'utf-8')
adherent['chbre'] = unicode(chbre, 'utf-8')
raise Continue(self_cont)
return adherent
def todo(chbre, adherent, self_cont, success_cont):
if not output:
if not chbre:
raise Continue(self_cont)
if output == "????":
if chbre == "????":
raise ValueError("Chambre ???? invalide")
if create:
return set_chambre(adherent, chbre)
......@@ -745,7 +745,7 @@ class Dialog(proprio.Dialog):
self.display_item(item=adherent, title="Adhérent déménagé dans la chambre %s" % output)
self.display_item(item=adherent, title="Adhérent déménagé dans la chambre %s" % chbre)
raise Continue(success_cont(adherent=adherent))
(code, output) = self.handle_dialog(cont, box)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment