changeset 22:82d15f93cc4a

wip
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 19:04:23 -0700
parents 48b4c926be73
children 5f39ce13fbbc
files talosnames/api.py talosnames/templates/index.html talosnames/web.py
diffstat 3 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/api.py	Tue Jul 10 18:56:34 2012 -0700
+++ b/talosnames/api.py	Tue Jul 10 19:04:23 2012 -0700
@@ -108,7 +108,7 @@
 
     def buildbot_command(self, name):
         """gets the buildbot command for a particular suite"""
-        return self.buildbot_commands.get(name)
+        return self.buildbot_commands.get(name[:])
 
     def talos_config(self, name):
         """returns talos configuration for suite `name`"""
--- a/talosnames/templates/index.html	Tue Jul 10 18:56:34 2012 -0700
+++ b/talosnames/templates/index.html	Tue Jul 10 19:04:23 2012 -0700
@@ -20,10 +20,7 @@
   <td>{{suite}}</td>
   <td><tt>{{repr(commands[suite])}}</tt></td>
   <td>{{tbpl[suite]}}</td>
-  <td><pre>foo
-
-
-bar</pre></td>
+  <td><pre>{{pprint(tests[suite])}}</pre></td>
 </tr>
 {{endfor}}
 </table>
--- a/talosnames/web.py	Tue Jul 10 18:56:34 2012 -0700
+++ b/talosnames/web.py	Tue Jul 10 19:04:23 2012 -0700
@@ -5,6 +5,7 @@
 """
 
 import os
+import pprint
 import tempita
 from api import TalosNames
 from webob import Request, Response, exc
@@ -39,7 +40,8 @@
                 'commands': self.api.buildbot_commands,
                 'tbpl': dict([(suite, self.api.tbpl_name(suite))
                               for suite in suites]),
-                'tests': tests
+                'tests': tests,
+                'pprint': pprint.pformat
                 }
         return template.substitute(data)