(suite)
darcs-hash:20060430121554-9e428-3f8c4d51d66c41c1151eb5f4dd74f60caf9bf5e5.gz
This commit is contained in:
parent
ce96ea7173
commit
23f1952293
1 changed files with 5 additions and 3 deletions
|
@ -135,10 +135,10 @@ class fichier_impression:
|
||||||
|
|
||||||
def impression(self):
|
def impression(self):
|
||||||
# Envoi du fichier à CUPS
|
# Envoi du fichier à CUPS
|
||||||
|
options =''
|
||||||
# Création de la liste d'options
|
# Création de la liste d'options
|
||||||
# pour le nombre de copies et specifie non assemblee
|
# pour le nombre de copies et specifie non assemblee
|
||||||
options = '-# %d -o Collate=True' % self.nb_copies
|
#options += '-# %d -o Collate=True' % self.nb_copies
|
||||||
|
|
||||||
# Pour spécifier l'imprimante
|
# Pour spécifier l'imprimante
|
||||||
options += ' -P laserjet'
|
options += ' -P laserjet'
|
||||||
|
@ -194,7 +194,9 @@ class fichier_impression:
|
||||||
else:
|
else:
|
||||||
options += ' -o sides=one-sided'
|
options += ' -o sides=one-sided'
|
||||||
options += ' -o HPColorasGray=%s' % (not self.couleur)
|
options += ' -o HPColorasGray=%s' % (not self.couleur)
|
||||||
(status,rep) = commands.getstatusoutput("lpr %s %s" % (options, self.nom_fichier_pdf))
|
liste_nom_fichier_pdf=(' '+self.nom_fichier_pdf)*self.nb_copies
|
||||||
|
#(status,rep) = commands.getstatusoutput("lpr %s %s" % (options, self.nom_fichier_pdf))
|
||||||
|
(status,rep) = commands.getstatusoutput("lpr %s %s" % (options, liste_nom_fichier_pdf))
|
||||||
if status != 0:
|
if status != 0:
|
||||||
print "<p>status:%d rep: %s</p>" % (status, rep)
|
print "<p>status:%d rep: %s</p>" % (status, rep)
|
||||||
openlog("impression")
|
openlog("impression")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue