changeset 31:c6580ad2612f

better formatting of command
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Jul 2012 21:36:05 -0700
parents 3f7bc028d6eb
children 1a9ec766f2b0
files talosnames/templates/index.html talosnames/web.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/templates/index.html	Tue Jul 17 14:23:06 2012 -0700
+++ b/talosnames/templates/index.html	Tue Jul 17 21:36:05 2012 -0700
@@ -51,7 +51,7 @@
 {{for suite in suites}}
 <tr>
   <td class="buildbot">{{suite}}</td>
-  <td class="command">{{repr(commands[suite])}}</tt></td>
+  <td class="command">{{list2cmdline(commands[suite])}}</tt></td>
   <td class="tbpl">{{tbpl[suite]}}</td>
   <td class="paint">{{paint.get(suite, '')}}</td>
   <td class="chrome">{{chrome.get(suite, '')}}</td>
--- a/talosnames/web.py	Tue Jul 17 14:23:06 2012 -0700
+++ b/talosnames/web.py	Tue Jul 17 21:36:05 2012 -0700
@@ -8,6 +8,7 @@
 import pprint
 import tempita
 from api import TalosNames
+from subprocess import list2cmdline
 from webob import Request, Response, exc
 
 here = os.path.dirname(os.path.abspath(__file__))
@@ -35,7 +36,7 @@
                                    for suite in suites]),
                      'tests': tests,
                      'pprint': pprint.pformat,
-                     'api': self.api
+                     'list2cmdline': list2cmdline
                      }
 
         paint = {}