Fix use of plain_logs.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 4 Dec 2010 02:11:24 +0000 (03:11 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 4 Dec 2010 02:11:24 +0000 (03:11 +0100)
buildfarm/web/__init__.py

index d9f3d6c..7d65bf4 100755 (executable)
@@ -955,6 +955,7 @@ class BuildFarmApp(object):
                     build_checksum = wsgiref.util.shift_path_info(environ)
                     build = self.buildfarm.builds.get_by_checksum(build_checksum)
                     page = ViewBuildPage(self.buildfarm)
+                    plain_logs = (get_param(form, "plain") is not None and get_param(form, "plain").lower() in ("yes", "1", "on", "true", "y"))
                     yield "".join(page.render(myself, build, plain_logs))
                 elif fn == "":
                     page = ViewSummaryPage(self.buildfarm)