RSS

(root)/packagedb/0.5.x : /pkgdb.wsgi.in (revision 616)

To get this branch, use:
bzr branch /bzr/packagedb/0.5.x
Line Revision Contents
1 48.2.210
#!/usr/bin/python -tt
2 478
import __main__
3
__main__.__requires__ = 'fedora_packagedb'
4 48.2.185
5
import sys
6 48.2.186
import os
7 48.2.185
sys.stdout = sys.stderr
8 48.2.186
sys.path.append(os.path.join('@DATADIR@', 'fedora-packagedb'))
9 48.2.185
10
import pkg_resources
11
pkg_resources.require("CherryPy<3.0")
12
13
os.environ['PYTHON_EGG_CACHE'] = '/var/www/.python-eggs'
14
15
import atexit
16
import cherrypy
17
import cherrypy._cpwsgi
18
import turbogears
19 589
import fedora.tg.tg1utils
20 48.2.185
21 537.1.118
turbogears.config.update({'global': {'mako.directories': [os.path.join(
22
    '@DATADIR@', 'fedora-packagedb/pkgdb/templates')]}})
23 48.2.186
turbogears.update_config(configfile=os.path.join('@CONFDIR@', 'pkgdb.cfg'),
24
        modulename="pkgdb.config")
25 48.12.47
# This must always be off when used with mod_wsgi
26
turbogears.config.update({'global': {'autoreload.on': False}})
27 48.2.186
28 537.1.59
import pkgdb.lib.utils
29
pkgdb.lib.utils.init_globals()
30 589
turbogears.startup.call_on_startup.append(fedora.tg.tg1utils.enable_csrf)
31 48.2.185
32
import pkgdb.controllers
33
cherrypy.root = pkgdb.controllers.Root()
34
35
if cherrypy.server.state == 0:
36
    atexit.register(cherrypy.server.stop)
37
    cherrypy.server.start(init_only=True, server_class=None)
38
39
application = cherrypy._cpwsgi.wsgiApp

Loggerhead 1.18.1 is a web-based interface for Bazaar branches