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()