comparison contrib/sawmill/web/details.py @ 473:d8012571f9e1

sawmill: removed trailing whitespace
author Sascha Teichmann <teichmann@intevation.de>
date Fri, 10 Sep 2010 10:46:50 +0000
parents 7fd8af79e652
children a8f77807d710
comparison
equal deleted inserted replaced
472:d760c6cd2abf 473:d8012571f9e1
81 if self.logs is None: 81 if self.logs is None:
82 log_dir = oj(os.path.dirname(self.status_file), "log") 82 log_dir = oj(os.path.dirname(self.status_file), "log")
83 if not os.path.isdir(log_dir): 83 if not os.path.isdir(log_dir):
84 self.logs = [] 84 self.logs = []
85 else: 85 else:
86 self.logs =[(_pretty_log_name(f), self.log_path(f)) 86 self.logs =[(_pretty_log_name(f), self.log_path(f))
87 for f in os.listdir(log_dir) 87 for f in os.listdir(log_dir)
88 if os.path.isfile(oj(log_dir, f)) and f.find("txt") >= 0] 88 if os.path.isfile(oj(log_dir, f)) and f.find("txt") >= 0]
89 return self.logs 89 return self.logs
90 90
91 build_status = property(get_build_status) 91 build_status = property(get_build_status)
108 revision_path = os.path.join(revisions_path, revision) 108 revision_path = os.path.join(revisions_path, revision)
109 if not os.path.isdir(revision_path): continue 109 if not os.path.isdir(revision_path): continue
110 status_file = os.path.join(revision_path, "status") 110 status_file = os.path.join(revision_path, "status")
111 if not os.path.isfile(status_file): continue 111 if not os.path.isfile(status_file): continue
112 items.append(TrackItem(treepkg, track, revision, status_file)) 112 items.append(TrackItem(treepkg, track, revision, status_file))
113 113
114 return items 114 return items
115 115
116 def __description_header(treepkg): 116 def __description_header(treepkg):
117 treepkg_xml = os.path.join(treepkg, "treepkg.xml") 117 treepkg_xml = os.path.join(treepkg, "treepkg.xml")
118 if os.path.isfile(treepkg_xml): 118 if os.path.isfile(treepkg_xml):
144 return "requested TreePkg not found" 144 return "requested TreePkg not found"
145 145
146 description, header = __description_header(found) 146 description, header = __description_header(found)
147 147
148 track_items = __scan_track_items(treepkg, found) 148 track_items = __scan_track_items(treepkg, found)
149 149
150 req.content_type = 'text/html;charset=utf-8' 150 req.content_type = 'text/html;charset=utf-8'
151 template = psp.PSP(req, filename='templates/details.html') 151 template = psp.PSP(req, filename='templates/details.html')
152 template.run({ 152 template.run({
153 'base_dir': BASE_DIR, 153 'base_dir': BASE_DIR,
154 'description': description, 154 'description': description,
155 'header': header, 155 'header': header,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)