Implantation diffrente du test sur l'anne de paiement (peut avoir
des effets de bords) darcs-hash:20040901041200-d1718-52fd4efb414c1ff7ebedbd8ae69324d5e96ea3b1.gz
This commit is contained in:
parent
31ef749810
commit
ae37fdf2ac
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,7 @@ import ldap, ldap.modlist
|
|||
|
||||
import config, annuaires, iptools, chgpass, user_tests
|
||||
from affich_tools import coul
|
||||
from time import sleep
|
||||
from time import sleep,localtime
|
||||
|
||||
import ldap_secret
|
||||
|
||||
|
@ -367,6 +367,9 @@ class crans_ldap :
|
|||
# Formatage adresse mac
|
||||
try : el = '(macAddress=%s)' % format_mac(expr)
|
||||
except : return ''
|
||||
elif champ == 'paiement' and localtime()[1] == 9 and int(expr) == ann_scol:
|
||||
# Dangereux, année de paiement
|
||||
el = "(|(paiement=%s)(paiement=%s))" % (int(ann_scol),int(ann_scol)-1)
|
||||
else :
|
||||
# Cas général
|
||||
el = '(%s=%s)' % (champ, expr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue