[whos] affichage du nombre de prises
darcs-hash:20081013192559-af139-815df53b2a5d9862a23e990e82a97b5104cf9ad4.gz
This commit is contained in:
parent
e7d1c0fbb0
commit
c12a1d68c0
1 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,7 @@ base = None
|
||||||
|
|
||||||
from time import strftime, localtime, time
|
from time import strftime, localtime, time
|
||||||
from ldap_crans import is_actif, crans_ldap, ann_scol, AssociationCrans, hostname
|
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 ldap_crans import Adherent
|
||||||
from affich_tools import *
|
from affich_tools import *
|
||||||
import user_tests
|
import user_tests
|
||||||
|
@ -575,6 +575,12 @@ def machine_details(machine) :
|
||||||
f += coul(u'\t\tPrise : ','gras') + machine.prise()
|
f += coul(u'\t\tPrise : ','gras') + machine.prise()
|
||||||
f+= '\n'
|
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é ?
|
# Adhérent blacklisté ?
|
||||||
bl = a.blacklist_actif()
|
bl = a.blacklist_actif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue