~loggerhead-team/loggerhead/trunk-rich

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from loggerhead.history import History
from loggerhead.wsgiapp import BranchWSGIApp

h = History.from_folder('.')

app = BranchWSGIApp(h)


from paste import httpserver
from paste.evalexception import EvalException
from paste.httpexceptions import make_middleware
from paste.translogger import make_filter

app = app.app
for w in EvalException, make_middleware:
    app = w(app)

app = make_filter(app, None)

httpserver.serve(app, host='127.0.0.1', port='9876')