[ldap_crans] Il n'y a pas toujours d'ancienne chambre

Ignore-this: 101f4eb098b9fe76afc33a8ca83f0c

darcs-hash:20121105133839-3a55a-c8186962de2667bad7569fe7a6f33ceee4979dfe.gz
This commit is contained in:
Valentin Samir 2012-11-05 14:38:39 +01:00
parent 327689a051
commit 27ea3b65cb

View file

@ -1761,7 +1761,7 @@ class BaseProprietaire(BaseClasseCrans):
else:
nouveau = 1
if 'chbre' in self.modifs and '????' in [ self._init_data.get("chbre", [''])[0] , self._init_data.get("chbre", [''])[1] ]:
if 'chbre' in self.modifs and '????' in self._init_data.get("chbre", [''])[:2]:
self.services_to_restart('bl_chbre_invalide')
if ('chbre' in self.modifs or 'paiement' in self.modifs) and self._data['chbre'][0] not in ("????", "EXT"):