~loggerhead-team/loggerhead/trunk-rich

1
2
3
4
5
6
7
8
9
10
11
12
13
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
httpserver.serve(EvalException(make_middleware(app.app)), host='127.0.0.1', port='9876')