/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/apps/__init__.py

  • Committer: Michael Hudson
  • Date: 2008-06-20 03:46:24 UTC
  • mfrom: (159.2.51 wsgi-ify)
  • Revision ID: michael.hudson@canonical.com-20080620034624-p46dvwbhppj2pojw
merge wsgi-ify
this removes the dependency on turbogears and cherrypy in favour of one on
paste (http://pythonpaste.org).
it adds a new executable, serve-branches.py, that serves branches following the
structure of the file system, but also converts start-loggerhead.py to serve
things from a loggerhead.conf file the 'old-fashioned' way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
import os
 
3
 
 
4
from paste import urlparser, fileapp
 
5
 
 
6
static = os.path.join(
 
7
    os.path.dirname(os.path.dirname(__file__)), 'static')
 
8
 
 
9
static_app = urlparser.make_static(None, static)
 
10
 
 
11
favicon_app = fileapp.FileApp(os.path.join(static, 'images', 'favicon.ico'))