* Dtabification
* Prcision du bac de sortie darcs-hash:20060218230838-68412-7bbe285b37542bb710430ed5b8cc24edbf5a8f40.gz
This commit is contained in:
parent
4ffa0c7a72
commit
fe603296b4
1 changed files with 6 additions and 4 deletions
|
@ -142,6 +142,9 @@ class fichier_impression :
|
|||
# Pour spécifier l'imprimante
|
||||
options +=' -P laserjet'
|
||||
|
||||
# Pour spécifier le bac sortie
|
||||
options += ' -o OutputBin=Left'
|
||||
|
||||
# Pour spécifier la version du language postscript utilisé par pdftops
|
||||
options +=' -o pdf-level3'
|
||||
|
||||
|
@ -177,9 +180,8 @@ class fichier_impression :
|
|||
(status,rep) = commands.getstatusoutput("lpr %s %s" % (options, self.nom_fichier_pdf))
|
||||
if status != 0:
|
||||
print "<p>status:%d rep: %s</p>" % (status, rep)
|
||||
syslog.openlog("impression")
|
||||
syslog.syslog("lpr status:%d | rep: %s" % (status, rep))
|
||||
|
||||
syslog.openlog("impression")
|
||||
syslog.syslog("lpr status:%d | rep: %s" % (status, rep))
|
||||
|
||||
def corrige(self):
|
||||
# Trouve le nombre de pages
|
||||
|
@ -289,7 +291,7 @@ class fichier_impression :
|
|||
if self.imprime != -3:
|
||||
self.imprime = -4
|
||||
syslog.openlog("impression")
|
||||
syslog.syslog("class : %s a disparue" % self.nom_fichier_pdf)
|
||||
syslog.syslog("class : %s a disparu" % self.nom_fichier_pdf)
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue