[config,firewall_new,generate,ldap_crans] On route intranet2 depuis le vlan accueil, on utilise iptable-restore pour la génération des blacklists, les déco soft sont relaiyé par le nginx de komaz, toutes les blackliste sont à generate sur komaz, les première inscription n'ont que inscription dans leur historique.
Ignore-this: 8b8414f5185ec9db2e4bf7f7f97d9161 darcs-hash:20121117003929-3a55a-0452cece4b67e246e6cf7ac72469af9f71722826.gz
This commit is contained in:
parent
19418d455b
commit
9a5b4e2d57
4 changed files with 43 additions and 12 deletions
|
@ -978,7 +978,7 @@ class BaseClasseCrans(CransLdap):
|
|||
# blacklistes virtuelle si on est un adhérent pour carte étudiant et chambre invalides
|
||||
if not config.periode_transitoire and config.bl_carte_et_actif and not (config.ann_scol in self.carteEtudiant()):
|
||||
for h in self.historique()[::-1]:
|
||||
x=re.match("(.*),.* : .*paiement\+%s.*" % config.ann_scol,h)
|
||||
x=re.match("(.*),.* : .*(paiement\+%s|inscription).*" % config.ann_scol,h)
|
||||
if x != None:
|
||||
if (time.time()-time.mktime(time.strptime(x.group(1),'%d/%m/%Y %H:%M')))>config.sursis_carte:
|
||||
actifs['carte_etudiant']=('-','-')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue