# HG changeset patch # User Jeff Hammel # Date 1341970395 25200 # Node ID 76a8d2bd4007dea3dc6520b94ee10512bc152198 # Parent 25e91fc7ff01d4fbf59437709435d2f14c5a9a20 starting on web part diff -r 25e91fc7ff01 -r 76a8d2bd4007 talosnames/template.py --- 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() - - diff -r 25e91fc7ff01 -r 76a8d2bd4007 talosnames/templates/index.html --- /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 @@ + + + + + + + + + + + + +
Buildbot SuiteBuildbot CommandTBPL NameTalos Tests
+ + diff -r 25e91fc7ff01 -r 76a8d2bd4007 talosnames/web.py --- 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() - +