[intranet/impression] pylint conformace
Ignore-this: 9b899ee6a2eeb972997317c636c98dc0 darcs-hash:20090515111349-bd074-9bf23ec6d07fdb9faa0ece7ec0377ea54fa8aae2.gz
This commit is contained in:
parent
708129aa2d
commit
9dae9ed43b
1 changed files with 7 additions and 7 deletions
|
@ -46,7 +46,7 @@ class threadedImpression(Thread, crans.impression.impression):
|
|||
self.tadh = adh
|
||||
Thread.__init__(self)
|
||||
|
||||
def run():
|
||||
def run(self):
|
||||
crans.impression.impression.__init__(self, self.tpath_to_pdf, self.tadh)
|
||||
if self.tcallback:
|
||||
self.tcallback(self)
|
||||
|
@ -238,10 +238,10 @@ class main(ModuleBase):
|
|||
file_folder = os.path.join(FILE_UPLOAD_BASE_FOLDER, cherrypy.session['uid']+"/")
|
||||
if not os.path.isdir(file_folder):
|
||||
return []
|
||||
list = os.listdir(file_folder)
|
||||
liste = os.listdir(file_folder)
|
||||
list_pdf = []
|
||||
# exclusion des fichiers qui ne sont pas des PDF
|
||||
for f in list:
|
||||
for f in liste:
|
||||
if commands.getoutput('file -ib %s' % commands.mk2arg(file_folder, f)) == "application/pdf":
|
||||
list_pdf.append(f)
|
||||
return list_pdf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue