comparison treepkg/packager.py @ 393:5fe26e7f6e2d treepkg-status

get all log files
author Bjoern Ricks <bricks@intevation.de>
date Fri, 09 Jul 2010 10:20:49 +0000
parents a690fc689f2f
children 2db42a2a9db9
comparison
equal deleted inserted replaced
392:e2afbd3c2bf1 393:5fe26e7f6e2d
321 def get_log_file(self): 321 def get_log_file(self):
322 if os.path.exists(self.build_log + ".gz"): 322 if os.path.exists(self.build_log + ".gz"):
323 return self.build_log + ".gz" 323 return self.build_log + ".gz"
324 return self.build_log 324 return self.build_log
325 325
326 def get_log_files(self, logs): 326 def get_log_files(self, logs=None):
327 files = [] 327 files = []
328 for f in os.listdir(self.log_dir): 328 for f in os.listdir(self.log_dir):
329 if f in logs: 329 if logs is None or f in logs:
330 f = os.path.join(self.log_dir,f) 330 f = os.path.join(self.log_dir,f)
331 if os.path.isfile(f): 331 if os.path.isfile(f):
332 files.append((self.get_log_title(f),f)) 332 files.append((self.get_log_title(f),f))
333 return files 333 return files
334 334
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)