[impression] lp gère mal plusieurs copies

Ignore-this: d5fb63b7bf3288e48c2100bddfd80cae

darcs-hash:20090827132007-bd074-d93121009feb2dec08a0ecfae155197efed16ba0.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-08-27 15:20:07 +02:00
parent 146949fa49
commit 36afd49bb0

View file

@ -450,8 +450,8 @@ class impression:
options += ' -o OutputBin=TrayA' options += ' -o OutputBin=TrayA'
options += ' -o Collate=StapleCollate -o StapleLocation=%s' % self._settings['agrafage'] options += ' -o Collate=StapleCollate -o StapleLocation=%s' % self._settings['agrafage']
cmd = "lpr %s -# %d %s" % (options, self._settings['copies'], for i in range(self._settings['copies']):
self._fichier) cmd = "lpr %s %s" % (options, self._fichier)
(status, rep) = getstatusoutput(cmd) (status, rep) = getstatusoutput(cmd)
self.log.info("printing: %s" % cmd) self.log.info("printing: %s" % cmd)
if status != 0: if status != 0:
@ -459,4 +459,3 @@ class impression:
self.log.error("lpr status:%d | rep: %s" % (status, rep)) self.log.error("lpr status:%d | rep: %s" % (status, rep))
raise PrintError, "%s \n status:%d rep: %s" % (cmp, status, rep) raise PrintError, "%s \n status:%d rep: %s" % (cmp, status, rep)