Plus de sale hack sur paiement=<anne en cours> quand on est en septembre
Maintenant pour savoir si un peiement est valide pour la priode en cours il suffira de chercher avec paiement=ok darcs-hash:20040930224644-41617-62aecb62998fc489eb30b40fb3cb707af60ed12e.gz
This commit is contained in:
parent
b6e6dfa2f3
commit
25e5ed6874
7 changed files with 17 additions and 14 deletions
|
@ -6,7 +6,7 @@ from gen_confs import gen_config, ERREUR, OK, anim
|
|||
|
||||
import sys
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
from ldap_crans import crans_ldap, ann_scol
|
||||
from ldap_crans import crans_ldap
|
||||
|
||||
class conf_wifi(gen_config) :
|
||||
""" Génération de la configuration de isakmpd dans ISAKMPD_CONF
|
||||
|
@ -103,7 +103,7 @@ Netmask= 0.0.0.0
|
|||
phase2 = self.phase2_debut
|
||||
blocs=''
|
||||
|
||||
for machine in self.db.search('host=*.wifi.crans.org&paiement=%s' % ann_scol)['machine'] :
|
||||
for machine in self.db.search('host=*.wifi.crans.org&paiement=ok')['machine'] :
|
||||
self.anim.cycle()
|
||||
if 'bloq' in machine.blacklist_actif() : continue
|
||||
data = { 'HOST' : machine.nom().split('.')[0] ,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue