bzr branch
http://gegoxaren.bato24.eu/bzr/loggerhead/trunk
|
159.2.1
by Michael Hudson
things start to work a little already! |
1 |
from loggerhead.history import History |
2 |
from loggerhead.wsgiapp import BranchWSGIApp |
|
3 |
||
4 |
h = History.from_folder('.') |
|
5 |
||
6 |
app = BranchWSGIApp(h) |
|
7 |
||
8 |
||
9 |
from paste import httpserver |
|
|
159.2.2
by Michael Hudson
more workingness |
10 |
from paste.evalexception import EvalException |
11 |
from paste.httpexceptions import make_middleware |
|
12 |
httpserver.serve(EvalException(make_middleware(app.app)), host='127.0.0.1', port='9876') |
|
|
159.2.1
by Michael Hudson
things start to work a little already! |
13 |