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:
parent
0ec0fdfbc5
commit
9e0e937575
1 changed files with 3 additions and 2 deletions
|
@ -438,9 +438,10 @@ class firewall_komaz :
|
|||
search = crans_ldap().search('blacklist=*&paiement=%s'% ann_scol)
|
||||
for entite in search['adherent']+search['club']+search['machine']:
|
||||
self.anim.cycle()
|
||||
sanctions = entite.blacklist_actif()
|
||||
sanctions = entite.blacklist_actif()
|
||||
if 'upload' in sanctions or 'warez' in sanctions :
|
||||
if search.__class__ == machine:
|
||||
from ldap_crans import machine
|
||||
if entite.__class__ == machine:
|
||||
blacklist+=[entite]
|
||||
else:
|
||||
blacklist+=entite.machines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue