changeset 18:76a8d2bd4007

starting on web part
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 18:33:15 -0700
parents 25e91fc7ff01
children aae0a420c4f7
files talosnames/template.py talosnames/templates/index.html talosnames/web.py
diffstat 3 files changed, 18 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/template.py	Tue Jul 10 18:23:16 2012 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-
-"""
-talosnames template for makeitso
-"""
-
-import sys
-from cli import MakeItSoCLI
-from optparse import OptionParser
-from template import MakeItSoTemplate
-
-class talosnamesTemplate(MakeItSoTemplate):
-  """
-  talosnames template
-  """
-  name = 'talosnames'
-  templates = ['template']
-  look = True
-
-class TemplateCLI(MakeItSoCLI):
-  """
-  CLI driver for the talosnames template
-  """
-
-def main(args=sys.argv[:]):
-  cli = TemplateCLI()
-  cli(*args)
-  
-if __name__ == '__main__':
-  main()  
-
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/talosnames/templates/index.html	Tue Jul 10 18:33:15 2012 -0700
@@ -0,0 +1,15 @@
+<html>
+<head>
+<title></title>
+</head>
+<body>
+<table>
+<tr>
+  <th>Buildbot Suite</th>
+  <th>Buildbot Command</th>
+  <th>TBPL Name</th>
+  <th>Talos Tests</th>
+</tr>
+</table>
+</body>
+</html>
--- a/talosnames/web.py	Tue Jul 10 18:23:16 2012 -0700
+++ b/talosnames/web.py	Tue Jul 10 18:33:15 2012 -0700
@@ -4,12 +4,13 @@
 web handler for talosnames
 """
 
+from api import TalosNames
 from webob import Request, Response, exc
 
 class Handler(object):
 
     def __init__(self, **kw):
-        pass
+        self.api = TalosNames()
 
     def __call__(self, environ, start_response):
         request = Request(environ)
@@ -22,5 +23,5 @@
     app = Handler()
     server = simple_server.make_server(host='0.0.0.0', port=8080, app=app)
     server.serve_forever()
-          
 
+