~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches.py

  • Committer: Martin Albisetti
  • Date: 2008-06-23 05:21:41 UTC
  • mto: (128.13.27 loggerhead.new_theme)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: argentina@gmail.com-20080623052141-lr31t9rjdbsuqfib
 * Only show directories first
 * Make filename ordering case-insensitive

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
from loggerhead.apps.filesystem import BranchesFromFileSystemRoot
 
3
from paste import httpserver
 
4
from paste.httpexceptions import make_middleware
 
5
from paste.translogger import make_filter
 
6
 
 
7
app = BranchesFromFileSystemRoot('.')
 
8
 
 
9
app = app
 
10
app = make_middleware(app)
 
11
app = make_filter(app, None)
 
12
 
 
13
#from paste.evalexception import EvalException
 
14
#app = EvalException(app)
 
15
 
 
16
httpserver.serve(app, host='0.0.0.0', port='9876')