Classe BorneWifi.
darcs-hash:20060302161125-68412-22a95570d131e655f5570a08a92a3135604ba32e.gz
This commit is contained in:
parent
be3d9b49b0
commit
962e284d11
4 changed files with 8 additions and 9 deletions
|
@ -28,7 +28,7 @@ sys.path.append('/usr/scripts/gestion')
|
|||
import syslog
|
||||
import pwd
|
||||
from lock import *
|
||||
from ldap_crans import crans_ldap, ann_scol, machine, crans, invite, hostname
|
||||
from ldap_crans import crans_ldap, ann_scol, Machine, crans, invite, hostname
|
||||
from affich_tools import *
|
||||
from commands import getstatusoutput
|
||||
from iptools import AddrInNet
|
||||
|
@ -675,8 +675,7 @@ class firewall_komaz(firewall_crans) :
|
|||
self.anim.cycle()
|
||||
sanctions = entite.blacklist_actif()
|
||||
if 'upload' in sanctions or 'warez' in sanctions or 'p2p' in sanctions or 'autodisc' in sanctions :
|
||||
from ldap_crans import machine
|
||||
if entite.__class__ == machine:
|
||||
if isinstance(entite, Machine):
|
||||
blacklist+=[entite]
|
||||
else:
|
||||
blacklist+=entite.machines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue