[binding] On gère aussi les dates avec des secondes.
This commit is contained in:
parent
3784c10da9
commit
db1dc7ec64
2 changed files with 23 additions and 17 deletions
|
@ -363,7 +363,7 @@ def list_spec(machines) :
|
|||
* nom
|
||||
* adresse IPv4/IPv6
|
||||
* adresse MAC
|
||||
|
||||
|
||||
Pour les bornes :
|
||||
* État
|
||||
* puissance
|
||||
|
@ -485,7 +485,7 @@ def adher_details(adher) :
|
|||
|
||||
# État administratif
|
||||
f += coul("Date d'inscription : ", "gras")
|
||||
f += strftime('%d/%m/%Y %H:%M', localtime(adher.dateInscription()))
|
||||
f += strftime('%d/%m/%Y %H:%M:%S', localtime(adher.dateInscription()))
|
||||
f += coul(u'\nÉtat administratif : ','gras')
|
||||
jour=1
|
||||
if ann_scol not in adher.carteEtudiant() :
|
||||
|
@ -926,7 +926,7 @@ def __bases_machines(m) :
|
|||
""" Retourne [ type de la machines, blacklist ] """
|
||||
#Type
|
||||
t = 'inconnu'
|
||||
t, _ = ridtools.find_rid_plage(int(m.rid()))
|
||||
t, _ = ridtools.find_rid_plage(int(m.rid()))
|
||||
|
||||
# Déconnectée ?
|
||||
b = m.blacklist_actif()
|
||||
|
@ -1352,6 +1352,7 @@ if __name__ == '__main__' :
|
|||
cprint(u"""Une erreur fatale s'est produite durant l'exécution.
|
||||
Pour l'amélioration de ce programme merci de prévenir nounou en spécifiant la
|
||||
marche à suivre pour reproduire cette erreur.""")
|
||||
raise
|
||||
if debug :
|
||||
cprint('-'*40)
|
||||
cprint(u'Détails techniques :')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue