From 9e0e93757537545053bc7f136fdfd47f56ce8ea2 Mon Sep 17 00:00:00 2001 From: pauget Date: Sun, 13 Mar 2005 03:39:19 +0100 Subject: [PATCH] Bug (ne comprend toujours pas pourquoi il faut rimporter machine ici, a voir ultrieurement). darcs-hash:20050313023919-41617-9f8dee1daccd39a9f0c0780dfa408fba32f270fa.gz --- gestion/gen_confs/firewall_komaz.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/firewall_komaz.py b/gestion/gen_confs/firewall_komaz.py index 9339ab8d..7f5337b8 100755 --- a/gestion/gen_confs/firewall_komaz.py +++ b/gestion/gen_confs/firewall_komaz.py @@ -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()