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:
parent
4f44971b23
commit
1dc52d6fa0
1 changed files with 2 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue