From 4aed0bc5c273ff1eb5b03762202d9a62fb0c9183 Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 19 Oct 2004 11:00:18 +0200 Subject: [PATCH] En tant que module, pas d'accs la base darcs-hash:20041019090018-d1718-ede4d3e64c428ab38350cee4c0b80e84abbcf037.gz --- gestion/whos.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gestion/whos.py b/gestion/whos.py index ab5d3d4a..eba47293 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -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