Mercurial > mozilla > hg > talosnames
comparison talosnames/web.py @ 31:c6580ad2612f
better formatting of command
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 17 Jul 2012 21:36:05 -0700 |
parents | c6a042aad739 |
children | 1a9ec766f2b0 |
comparison
equal
deleted
inserted
replaced
30:3f7bc028d6eb | 31:c6580ad2612f |
---|---|
6 | 6 |
7 import os | 7 import os |
8 import pprint | 8 import pprint |
9 import tempita | 9 import tempita |
10 from api import TalosNames | 10 from api import TalosNames |
11 from subprocess import list2cmdline | |
11 from webob import Request, Response, exc | 12 from webob import Request, Response, exc |
12 | 13 |
13 here = os.path.dirname(os.path.abspath(__file__)) | 14 here = os.path.dirname(os.path.abspath(__file__)) |
14 template = os.path.join(here, 'templates', 'index.html') | 15 template = os.path.join(here, 'templates', 'index.html') |
15 | 16 |
33 'commands': self.api.buildbot_commands, | 34 'commands': self.api.buildbot_commands, |
34 'tbpl': dict([(suite, self.api.tbpl_name(suite)) | 35 'tbpl': dict([(suite, self.api.tbpl_name(suite)) |
35 for suite in suites]), | 36 for suite in suites]), |
36 'tests': tests, | 37 'tests': tests, |
37 'pprint': pprint.pformat, | 38 'pprint': pprint.pformat, |
38 'api': self.api | 39 'list2cmdline': list2cmdline |
39 } | 40 } |
40 | 41 |
41 paint = {} | 42 paint = {} |
42 chrome = {} | 43 chrome = {} |
43 graphserver = {} | 44 graphserver = {} |