diff options
| author | erdgeist <> | 2010-08-30 19:00:04 +0000 |
|---|---|---|
| committer | erdgeist <> | 2010-08-30 19:00:04 +0000 |
| commit | 5a1f3fd19e7a0378f4345d00bb61216b5dc8f934 (patch) | |
| tree | 53d48d36570eeb9339aedc5adf16a630bd85801f /tinybill.py | |
Kickoff
Diffstat (limited to 'tinybill.py')
| -rw-r--r-- | tinybill.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tinybill.py b/tinybill.py new file mode 100644 index 0000000..adc7c78 --- /dev/null +++ b/tinybill.py | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | import sqlalchemy | ||
| 2 | from sqlalchemy import * | ||
| 3 | |||
| 4 | # bfg imports | ||
| 5 | from webob import Response | ||
| 6 | from paste.httpserver import serve | ||
| 7 | from repoze.bfg.configuration import Configurator | ||
| 8 | |||
| 9 | # tinybill imports | ||
| 10 | from customer import * | ||
| 11 | import db | ||
| 12 | |||
| 13 | def hello_world(request): | ||
| 14 | return Response('Hello world!') | ||
| 15 | |||
| 16 | if __name__ == '__main__': | ||
| 17 | db.setupdb( ) | ||
| 18 | config = Configurator() | ||
| 19 | config.begin() | ||
| 20 | config.load_zcml('configure.zcml') | ||
| 21 | config.end() | ||
| 22 | app = config.make_wsgi_app() | ||
| 23 | serve(app, host='0.0.0.0') | ||
