En tant que module, pas d'accs la base

darcs-hash:20041019090018-d1718-ede4d3e64c428ab38350cee4c0b80e84abbcf037.gz
This commit is contained in:
bernat 2004-10-19 11:00:18 +02:00
parent 1334934947
commit 4aed0bc5c2

View file

@ -45,6 +45,8 @@ try:
except:
pass
base = None
from ldap_crans import is_actif , crans_ldap, ann_scol, crans, hostname
from affich_tools import *
from hptools import sw_chbre
@ -430,7 +432,7 @@ def machine_details(machine) :
f += '\n'
# S'il y a des clients, on les liste
clients = borne_clients(machine.nom())
if clients:
if clients and base:
f += coul(u'Clients : \n','gras')
for (client, rssi) in clients:
# On va chercher le nom correspondant à l'adresse MAC