blob: adc7c78ea553b6f81df02970ddb4ead188d28c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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')
|