prise en charge des clubs pour eviter de les decabler ;)

darcs-hash:20040913174050-4ec08-1a718332517fb53977ac37dcc0c5e420c599bd4d.gz
This commit is contained in:
chove 2004-09-13 19:40:50 +02:00
parent 750e4c1262
commit 22f4eac982

View file

@ -41,12 +41,12 @@ hostname "%(switch)s"
snmp-server contact "root@crans.org" snmp-server contact "root@crans.org"
snmp-server location "Batiment %(bat)s" snmp-server location "Batiment %(bat)s"
;A faire à la main ;A faire à la main
;snmpv3 enable snmpv3 enable
;snmpv3 restricted-access snmpv3 restricted-access
;snmpv3 user "initial" ;snmpv3 user "initial"
;snmpv3 user "crans" snmpv3 user "crans"
;snmpv3 group ManagerPriv user "crans" sec-model ver3 snmpv3 group ManagerPriv user "crans" sec-model ver3
;snmp-server community "public" Operator snmp-server community "public" Operator
;-------------------------------------------------------- Réglage heure/date ;-------------------------------------------------------- Réglage heure/date
time timezone 60 time timezone 60
time daylight-time-rule Western-Europe time daylight-time-rule Western-Europe
@ -129,10 +129,10 @@ exit
def configure_chbre(self,chbre) : def configure_chbre(self,chbre) :
""" Recontigure la chambre fournie chambre """ """ Recontigure la chambre fournie chambre """
bat = chbre[0].lower() bat = chbre[0].lower()
a = self.db.search('chbre=%s' % chbre)['adherent'] a = self.db.search('chbre=%s' % chbre)
action = '' action = ''
for adh in a : for proprio in a['adherent'] + a['club'] :
if (((ann_scol in adh.paiement()) or ((ann_scol-1) in adh.paiement() and localtime()[1]==9)) and 'bloq' not in adh.blacklist_actif()) : 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 # Il faut activer la prise
anim('\tactivation chbre %s' % chbre) anim('\tactivation chbre %s' % chbre)
action = 'enable' action = 'enable'