[impression] lp gère mal plusieurs copies
Ignore-this: d5fb63b7bf3288e48c2100bddfd80cae darcs-hash:20090827132007-bd074-d93121009feb2dec08a0ecfae155197efed16ba0.gz
This commit is contained in:
parent
146949fa49
commit
36afd49bb0
1 changed files with 8 additions and 9 deletions
|
@ -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