~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches.py

  • Committer: Robey Pointer
  • Date: 2007-01-06 05:02:02 UTC
  • Revision ID: robey@lag.net-20070106050202-i1hzwt613qigsin3
refactor and clean up the javascript code for the expand/collapse buttons,
and apply the same logic to files being diff'd on the revision view.  the
primary difference is that a revision starts out expanded, since otherwise
there's not much to see.  also, change the terminology from "show/hide" to
"expand/collapse" on nicholas allen's recommendation.

Show diffs side-by-side

added added

removed removed

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