2me changement annonc dans le dernier commit fait
darcs-hash:20040914210854-41617-787d7de3e75121332be978ae2f66e29d215a5021.gz
This commit is contained in:
parent
8de44976c5
commit
2a26dcfc16
1 changed files with 7 additions and 9 deletions
|
@ -129,15 +129,13 @@ exit
|
|||
def configure_chbre(self,chbre) :
|
||||
""" Recontigure la chambre fournie chambre """
|
||||
bat = chbre[0].lower()
|
||||
a = self.db.search('chbre=%s' % chbre)
|
||||
action = ''
|
||||
for proprio in a['adherent'] + a['club'] :
|
||||
if (((ann_scol in proprio.paiement()) or ((ann_scol-1) in proprio.paiement() and localtime()[1]==9)) and 'bloq' not in proprio.blacklist_actif()) :
|
||||
# Il faut activer la prise
|
||||
anim('\tactivation chbre %s' % chbre)
|
||||
action = 'enable'
|
||||
break
|
||||
if action == '' :
|
||||
a = self.db.search('chbre=%s&paiement=%i' % (chbre,ann_scol))
|
||||
a = a['adherent'] + a['club']
|
||||
if a and 'bloq' not in a[0].blacklist_actif() :
|
||||
# Il faut activer la prise
|
||||
anim('\tactivation chbre %s' % chbre)
|
||||
action = 'enable'
|
||||
else :
|
||||
# Il faut désactiver la prise
|
||||
anim('\tdésactivation chbre %s' % chbre)
|
||||
action = 'disable'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue