etat_imprimante: affiche le statut pour de vrai

C'est comme ça que ça se corrige, un bug. http://ljdchost.com/4wcNVxf.gif
This commit is contained in:
Daniel STAN 2014-04-14 18:21:01 +02:00
parent 4f44971b23
commit 1dc52d6fa0

View file

@ -38,12 +38,10 @@ def etat_canon():
for oid in [".hrPrinterStatus.1", ".hrDeviceStatus.1"]:
#".hrPrinterDetectedErrorState.1"
# raw_msg.append(comm.get_string(oid))
pass
raw_msg.append(comm.get_string(oid))
msg = _dico['\n'.join(msg)].split('\n')
if raw_msg[1] == 'warning(3)':
msg += [v.replace('"', '') for v in comm.walk('mib-2.43.18.1.1.8').values()]
msg += [v.replace('"', '') for v in comm.walk('mib-2.43.18.1.1.8', output='q').values()]
except Exception,err:
msg.append("[%s]" % unicode(err))