Commit b6e16112 authored by Daniel STAN's avatar Daniel STAN
Browse files

[ etat_imprimante.py ] A defaut d'appeler la maintenance ...

darcs-hash:20111216115518-28565-6826a0b400f82c95e407312feea6f22ad97d35fd.gz
parent de501e7b
......@@ -20,8 +20,7 @@ class ErreurCommunication(Exception):
pass
def etat():
exec ("a = etat_%s()" % impression.imprimante)
return a
return (globals()["etat_%s" % impression.imprimante])()
def etat_canon():
_dico = {
......@@ -48,6 +47,8 @@ def etat_canon():
except Exception,err:
msg.append("[%s]" % unicode(err))
msg.append(u"L'imprimante laisse des traines sur les pages")
return msg
def etat_laserjet():
......
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