Commit 1dc52d6f authored by Daniel STAN's avatar Daniel STAN
Browse files

etat_imprimante: affiche le statut pour de vrai

C'est comme ça que ça se corrige, un bug. http://ljdchost.com/4wcNVxf.gif
parent 4f44971b
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment