From 5a1f3fd19e7a0378f4345d00bb61216b5dc8f934 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 30 Aug 2010 19:00:04 +0000 Subject: Kickoff --- tinybill.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tinybill.py (limited to 'tinybill.py') diff --git a/tinybill.py b/tinybill.py new file mode 100644 index 0000000..adc7c78 --- /dev/null +++ b/tinybill.py @@ -0,0 +1,23 @@ +import sqlalchemy +from sqlalchemy import * + +# bfg imports +from webob import Response +from paste.httpserver import serve +from repoze.bfg.configuration import Configurator + +# tinybill imports +from customer import * +import db + +def hello_world(request): + return Response('Hello world!') + +if __name__ == '__main__': + db.setupdb( ) + config = Configurator() + config.begin() + config.load_zcml('configure.zcml') + config.end() + app = config.make_wsgi_app() + serve(app, host='0.0.0.0') -- cgit v1.2.3