[impression] corrections diverses
darcs-hash:20090609134624-bd074-089e88f81793ae08fbe817a5b97df9089ba1dda1.gz
This commit is contained in:
parent
c2535c1f04
commit
4f69918eba
3 changed files with 11 additions and 12 deletions
|
@ -43,7 +43,7 @@ def etat_canon():
|
|||
msg = _dico['\n'.join(msg)].split('\n')
|
||||
|
||||
if raw_msg[1] == 'warning(3)':
|
||||
msg += (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').values()]
|
||||
|
||||
except Exception,err:
|
||||
msg.append("[%s]" % unicode(err))
|
||||
|
|
|
@ -9,4 +9,4 @@ from user_tests import getuser
|
|||
|
||||
if __name__ == '__main__':
|
||||
# génère un nouveau code et l'affiche
|
||||
print new_code('%s via %s'%(getuser(),os.path.abspath(__file__)))
|
||||
print gen_code('%s via %s'%(getuser(),os.path.abspath(__file__)))
|
||||
|
|
|
@ -268,7 +268,7 @@ class impression:
|
|||
print u"Agrafage: Livret (piqûre à cheval)"
|
||||
else:
|
||||
print "Agrafage: " + DICT_AGRAFAGE[self._settings['agrafage']]
|
||||
if self._setting['recto_verso']:
|
||||
if self._settings['recto_verso']:
|
||||
print "Disposition: recto/verso"
|
||||
else:
|
||||
print "Disposition: recto"
|
||||
|
@ -450,13 +450,12 @@ class impression:
|
|||
options += ' -o OutputBin=TrayA'
|
||||
options += ' -o Collate=StapleCollate -o StapleLocation=%s' % self._settings['agrafage']
|
||||
|
||||
cmd = "lpr %s -# %d %s" % (options, self._settings['copies'],
|
||||
self._fichier)
|
||||
(status, rep) = getstatusoutput(cmd)
|
||||
self.log.info("printing: %s" % cmd)
|
||||
if status != 0:
|
||||
self.log.error("erreur impression")
|
||||
self.log.error("lpr status:%d | rep: %s" % (status, rep))
|
||||
raise PrintError, "%s \n status:%d rep: %s" % (cmp, status, rep)
|
||||
|
||||
for i in range(self._settings['copies']):
|
||||
cmd = "lpr %s %s" % (options, self._fichier)
|
||||
(status, rep) = getstatusoutput(cmd)
|
||||
self.log.info("printing: %s" % cmd)
|
||||
if status != 0:
|
||||
self.log.error("erreur impression")
|
||||
self.log.error("lpr status:%d | rep: %s" % (status, rep))
|
||||
raise PrintError, "%s \n status:%d rep: %s" % (cmp, status, rep)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue