On n'affiche pas dans l'intranet le nombre de pages restantes.
darcs-hash:20070221002559-68412-819e41fdbbb2366202f1bdfa767ce9a7e9b43b9e.gz
This commit is contained in:
parent
abb7554bd2
commit
a3a5be22fd
1 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,7 @@ _dico = {
|
||||||
u'13.03.00 BOURRAGE':u"Bourrage papier",
|
u'13.03.00 BOURRAGE':u"Bourrage papier",
|
||||||
u'DS TRAPPE SUP DROITE':u"",
|
u'DS TRAPPE SUP DROITE':u"",
|
||||||
u'COMM TAMB. NOIR':u"",
|
u'COMM TAMB. NOIR':u"",
|
||||||
|
u'PAGES REST.': u"",
|
||||||
}
|
}
|
||||||
|
|
||||||
class ErreurCommunication(Exception):
|
class ErreurCommunication(Exception):
|
||||||
|
@ -49,7 +50,8 @@ def etat():
|
||||||
liste_msg = []
|
liste_msg = []
|
||||||
for oid in liste_oid:
|
for oid in liste_oid:
|
||||||
msg = comm.get_string(oid).decode("ISO-8859-1")
|
msg = comm.get_string(oid).decode("ISO-8859-1")
|
||||||
msg = _dico.get(msg, msg)
|
for k in _dico.keys():
|
||||||
|
if k in msg: msg = _dico[k]
|
||||||
if msg: liste_msg.append(msg)
|
if msg: liste_msg.append(msg)
|
||||||
except Exception,err:
|
except Exception,err:
|
||||||
raise ErreurCommunication, str(err)
|
raise ErreurCommunication, str(err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue