From c12a1d68c06fa55aaedb0ae7cfd2f53d9862c154 Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Mon, 13 Oct 2008 21:25:59 +0200 Subject: [PATCH] [whos] affichage du nombre de prises darcs-hash:20081013192559-af139-815df53b2a5d9862a23e990e82a97b5104cf9ad4.gz --- gestion/whos.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gestion/whos.py b/gestion/whos.py index 8ed10dbd..301b1c96 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -50,7 +50,7 @@ base = None from time import strftime, localtime, time from ldap_crans import is_actif, crans_ldap, ann_scol, AssociationCrans, hostname -from ldap_crans import MachineWifi, BorneWifi +from ldap_crans import MachineCrans, MachineWifi, BorneWifi from ldap_crans import Adherent from affich_tools import * import user_tests @@ -575,6 +575,12 @@ def machine_details(machine) : f += coul(u'\t\tPrise : ','gras') + machine.prise() f+= '\n' + if isinstance(machine, MachineCrans): + n = machine.nombrePrises() + print type(n) + if n >= 0: + f += coul(u'Nombre de prises : ', 'gras') + f += "%d\n" % n # Adhérent blacklisté ? bl = a.blacklist_actif()