# HG changeset patch # User Sascha Teichmann # Date 1284115610 0 # Node ID d8012571f9e1f4b83de6e3c607348e283286c680 # Parent d760c6cd2abfa65c7186dcd09664b920080cd81f sawmill: removed trailing whitespace diff -r d760c6cd2abf -r d8012571f9e1 contrib/sawmill/web/details.py --- a/contrib/sawmill/web/details.py Fri Sep 10 10:18:31 2010 +0000 +++ b/contrib/sawmill/web/details.py Fri Sep 10 10:46:50 2010 +0000 @@ -83,7 +83,7 @@ if not os.path.isdir(log_dir): self.logs = [] else: - self.logs =[(_pretty_log_name(f), self.log_path(f)) + self.logs =[(_pretty_log_name(f), self.log_path(f)) for f in os.listdir(log_dir) if os.path.isfile(oj(log_dir, f)) and f.find("txt") >= 0] return self.logs @@ -110,7 +110,7 @@ status_file = os.path.join(revision_path, "status") if not os.path.isfile(status_file): continue items.append(TrackItem(treepkg, track, revision, status_file)) - + return items def __description_header(treepkg): @@ -146,8 +146,8 @@ description, header = __description_header(found) track_items = __scan_track_items(treepkg, found) - - req.content_type = 'text/html;charset=utf-8' + + req.content_type = 'text/html;charset=utf-8' template = psp.PSP(req, filename='templates/details.html') template.run({ 'base_dir': BASE_DIR, diff -r d760c6cd2abf -r d8012571f9e1 contrib/sawmill/web/index.py --- a/contrib/sawmill/web/index.py Fri Sep 10 10:18:31 2010 +0000 +++ b/contrib/sawmill/web/index.py Fri Sep 10 10:46:50 2010 +0000 @@ -16,7 +16,7 @@ TREEPKG_DIR = os.path.join(os.path.dirname(__file__), "treepkgs") def index(req): - req.content_type = 'text/html;charset=utf-8' + req.content_type = 'text/html;charset=utf-8' template = psp.PSP(req, filename='templates/overview.html') descriptions = [] diff -r d760c6cd2abf -r d8012571f9e1 contrib/sawmill/web/templates/details.html --- a/contrib/sawmill/web/templates/details.html Fri Sep 10 10:18:31 2010 +0000 +++ b/contrib/sawmill/web/templates/details.html Fri Sep 10 10:46:50 2010 +0000 @@ -1,4 +1,4 @@ - <% from cgi import escape @@ -201,7 +201,7 @@
- + This site is hosted by the Intevation GmbH
diff -r d760c6cd2abf -r d8012571f9e1 contrib/sawmill/web/templates/overview.html --- a/contrib/sawmill/web/templates/overview.html Fri Sep 10 10:18:31 2010 +0000 +++ b/contrib/sawmill/web/templates/overview.html Fri Sep 10 10:46:50 2010 +0000 @@ -1,4 +1,4 @@ - <% from cgi import escape @@ -69,7 +69,7 @@
...to WALD source code repository
-<% +<% for treepkg, description in sorted(descriptions, key=lambda x: x[1]): # for all descriptions %> @@ -123,7 +123,7 @@
- + This site is hosted by the Intevation GmbH