[whos/annuaires_pg] affichage commentaire prise

Ignore-this: 5f139b5ce479c654d6ed64dcae6892d2

darcs-hash:20121116234433-28565-b2becfb73c07a025b7b77e465c6792b2b4524a68.gz
This commit is contained in:
Daniel STAN 2012-11-17 00:44:33 +01:00
parent 9022007377
commit 6089aa2d38
2 changed files with 18 additions and 0 deletions

View file

@ -1007,6 +1007,13 @@ def prise_etat(chbre) :
f+= u', ' + coul(u'prise désactivée','rouge')
else :
f+= u', activée, lien non détecté'
try:
import annuaires_pg
extra_info = annuaires_pg.chbre_commentaire(chbre[0],chbre[1:]).decode('utf-8')
if extra_info:
f += u'\n' + ' '*10 + extra_info
except ValueError:
pass
except ConversationError, r:
# Switch non manageable ou down
f += ', '