[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
|
@ -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