Correction de franais
Pourquoi le dictionnaire n'est pas dfini qu'une seule fois ? darcs-hash:20060331195806-72cb0-f957145688706eec5b8e74b040744e639f3ebbe0.gz
This commit is contained in:
parent
0ce3abd2d4
commit
f5c49ff7d6
1 changed files with 17 additions and 17 deletions
|
@ -52,7 +52,7 @@ class fichier_impression:
|
|||
couleur = True
|
||||
cout = 0.0
|
||||
portrait = True
|
||||
agraphe=0 #-1 : agraphe diagonale, 0 : pas d'agraphe, 1 : 1 agraphe parallele, 2: 2 agraphes, 3: 3 agraphes, 6: 6 agraphes(stitching)
|
||||
agrafe=0 #-1 : agrafe diagonale, 0 : pas d'agrafe, 1 : 1 agrafe parallele, 2: 2 agrafes, 3: 3 agrafes, 6: 6 agrafes(stitching)
|
||||
user = ""
|
||||
user_ldap = None # sera une instance de l'utilisateur dans la base ldap.
|
||||
imprime = -1 #-2 impression en suspend, -1 mise dans la file
|
||||
|
@ -159,20 +159,20 @@ class fichier_impression:
|
|||
#options += ' -o job-sheets=crans' #page de garde de type standard
|
||||
options += " -o job-billing=%.2f" % self.cout
|
||||
|
||||
#Indique la présence d'un ba de sortie avec agrapheuse
|
||||
#Indique la présence d'un bac de sortie avec agrafeuse
|
||||
options += " -o Option20=MBMStaplerStacker -o OutputBin=StackerDown"
|
||||
|
||||
if self.agraphe==-1:
|
||||
if self.agrafe==-1:
|
||||
options += ' -o StapleLocation=1diagonal'
|
||||
elif self.agraphe==0:
|
||||
elif self.agrafe==0:
|
||||
options += ' -o StapleLocation=None'
|
||||
elif self.agraphe==1:
|
||||
elif self.agrafe==1:
|
||||
options += ' -o StapleLocation=1parallel'
|
||||
elif self.agraphe==2:
|
||||
elif self.agrafe==2:
|
||||
options += ' -o StapleLocation=2parallel'
|
||||
elif self.agraphe==3:
|
||||
elif self.agrafe==3:
|
||||
options += ' -o StapleLocation=3parallel'
|
||||
elif self.agraphe==6:
|
||||
elif self.agrafe==6:
|
||||
options += ' -o StapleLocation=Stitching'
|
||||
|
||||
if self.transparent:
|
||||
|
@ -265,7 +265,7 @@ class fichier_impression:
|
|||
"transparent", "couleur", "cout",
|
||||
"portrait", "user", "imprime",
|
||||
"nom_fichier_pdf", "nom_fichier_desc",
|
||||
"code", "modif_epoch", "job_id","agraphe"):
|
||||
"code", "modif_epoch", "job_id","agrafe"):
|
||||
file_obj_desc.write(key+"="+str(getattr(self,key))+"\n")
|
||||
file_obj_desc.close()
|
||||
except Exception, inst :
|
||||
|
@ -288,7 +288,7 @@ class fichier_impression:
|
|||
else:
|
||||
#pour les attributs entiers
|
||||
if parse[0] in ("nbr_pages", "nb_copie",
|
||||
"imprime", "code","agraphe"):
|
||||
"imprime", "code","agrafe"):
|
||||
setattr(self,parse[0],int(parse[1]))
|
||||
else:
|
||||
#pour les attributs boolean
|
||||
|
@ -330,12 +330,12 @@ class fichier_impression:
|
|||
'recto_verso' : 'Recto-Verso',
|
||||
'erreur_critique' : "Problème survenu" }
|
||||
|
||||
dict_agraphe = { -1 : "agraphe en diagonale",
|
||||
0 : "aucune agraphe",
|
||||
1 : "1 agraphe parallele",
|
||||
2 : "reliure 2 agraphe",
|
||||
3 : "reliure 3 agraphe",
|
||||
6 : "reliure 6 agraphe" }
|
||||
dict_agrafe = { -1 : "agrafe en diagonale",
|
||||
0 : "aucune agrafe",
|
||||
1 : "1 agrafe parallele",
|
||||
2 : "reliure 2 agrafe",
|
||||
3 : "reliure 3 agrafe",
|
||||
6 : "reliure 6 agrafe" }
|
||||
|
||||
corps = "<TABLE BORDER=0 CELLPADDDING=2>\n<TR><th ALIGN=CENTER COLSPAN=2><U>%s</U></th><td ALIGN=RIGHT>%s</TR>\n" % (self.nom_job, time.ctime(0.0))
|
||||
corps += "<TR><td>\n<TABLE BORDER=2 RULES=ROWS CELLPADDDING=0>\n"
|
||||
|
@ -347,7 +347,7 @@ class fichier_impression:
|
|||
self.code = self.code[:-1]
|
||||
|
||||
corps += "</TABLE>\n</td>\n<td>\n<TABLE BORDER=2 RULES=ROWS CELLPADDDING=0>\n"
|
||||
corps += '<TR><td>%s</td></TR>\n' % dict_agraphe[self.agraphe]
|
||||
corps += '<TR><td>%s</td></TR>\n' % dict_agrafe[self.agrafe]
|
||||
for key in ("couleur", "transparent",
|
||||
"portrait", "recto_verso"):
|
||||
if getattr(self, key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue