invite -> Invite.
darcs-hash:20060323120339-68412-1af24e89624decc04527eb7274af186b8cc7dcf1.gz
This commit is contained in:
parent
3d0f609ee6
commit
bfed30d32a
4 changed files with 11 additions and 11 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, crans, invite, hostname
|
||||
from ldap_crans import crans_ldap, ann_scol, crans, Invite, hostname
|
||||
from ldap_crans import Machine, MachineWifi
|
||||
from affich_tools import *
|
||||
from commands import getstatusoutput
|
||||
|
@ -290,7 +290,7 @@ class firewall_crans :
|
|||
# Il faut avoir payé ou ętre une machine du crans ou un invite
|
||||
if db.search('paiement=ok&ip=%s'% ip)['machine'] or \
|
||||
machine[0].proprietaire().__class__ == crans or \
|
||||
machine[0].proprietaire().__class__ == invite :
|
||||
machine[0].proprietaire().__class__ == Invite :
|
||||
mac_ip_maj[ip] = machine[0]
|
||||
else :
|
||||
mac_ip_maj[ip] = None
|
||||
|
|
|
@ -17,7 +17,7 @@ import sys, signal, os, getopt
|
|||
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
|
||||
from ldap_crans import crans_ldap, crans, hostname, invite
|
||||
from ldap_crans import crans_ldap, crans, hostname
|
||||
from lock import *
|
||||
from affich_tools import anim, cprint, OK
|
||||
from time import localtime, strftime, time, sleep, timezone
|
||||
|
|
|
@ -6,7 +6,7 @@ from gen_confs import gen_config, ERREUR, OK, anim
|
|||
|
||||
import sys, os, shutil
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
from ldap_crans import crans_ldap, invite, BorneWifi
|
||||
from ldap_crans import crans_ldap, Invite, BorneWifi
|
||||
|
||||
class conf_wifi_ng(gen_config) :
|
||||
""" Génération de la configuration de isakmpd dans ISAKMPD_CONF
|
||||
|
@ -47,7 +47,7 @@ class conf_wifi_ng(gen_config) :
|
|||
def _gen(self):
|
||||
self.anim=anim('\r\tRecherche base LDAP')
|
||||
clients = self.db.search('host=*.wifi.crans.org&paiement=ok')['machineWifi'] + \
|
||||
invite().machines()
|
||||
Invite().machines()
|
||||
bornes = self.db.search('host=*.wifi.crans.org&canal=*')['borneWifi']
|
||||
|
||||
print OK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue