Bug (ne comprend toujours pas pourquoi il faut rimporter machine ici, a voir

ultrieurement).

darcs-hash:20050313023919-41617-9f8dee1daccd39a9f0c0780dfa408fba32f270fa.gz
This commit is contained in:
pauget 2005-03-13 03:39:19 +01:00
parent 0ec0fdfbc5
commit 9e0e937575

View file

@ -438,9 +438,10 @@ class firewall_komaz :
search = crans_ldap().search('blacklist=*&paiement=%s'% ann_scol) search = crans_ldap().search('blacklist=*&paiement=%s'% ann_scol)
for entite in search['adherent']+search['club']+search['machine']: for entite in search['adherent']+search['club']+search['machine']:
self.anim.cycle() self.anim.cycle()
sanctions = entite.blacklist_actif() sanctions = entite.blacklist_actif()
if 'upload' in sanctions or 'warez' in sanctions : if 'upload' in sanctions or 'warez' in sanctions :
if search.__class__ == machine: from ldap_crans import machine
if entite.__class__ == machine:
blacklist+=[entite] blacklist+=[entite]
else: else:
blacklist+=entite.machines() blacklist+=entite.machines()