[ldap_crans] On laisse un sursis d'une semaine après paiement avant de déconnecter pour carte étudiant après le 01/11
Ignore-this: 5a7ae8cbbb8368cbb2d376b785bda204 darcs-hash:20121106173911-3a55a-40830d547ded3ba9876f3fd1656025710b53f0f8.gz
This commit is contained in:
parent
ee2ef35c55
commit
47f0e3f4cc
2 changed files with 8 additions and 1 deletions
|
@ -977,7 +977,12 @@ class BaseClasseCrans(CransLdap):
|
|||
elif isinstance(self, Adherent) and (config.ann_scol in self.paiement()):
|
||||
# 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()):
|
||||
actifs['carte_etudiant']=('-','-')
|
||||
for h in self.historique()[::-1]:
|
||||
x=re.match("(.*),.* : .*paiement\+%s.*" % 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']=('-','-')
|
||||
break
|
||||
if self.chbre() == '????':
|
||||
actifs['chambre_invalide']=('-','-')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue