Changeset 2728 for package_branches/invirt-web/cherrypy-rebased/code
- Timestamp:
- Dec 20, 2009, 9:48:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.fcgi
r2702 r2728 31 31 else: 32 32 conf_file = os.path.join(base_dir, 'main.conf') 33 app = cherrypy.tree.mount(InvirtWeb(), 34 '/', 35 {'/': {'tools.staticdir.root': static_dir, 36 'tools.invirtwebstate.on': True}, 37 '/static': {'tools.staticdir.on': True, 38 'tools.staticdir.dir': static_dir} 39 }) 40 app.merge(conf_file) 33 34 app_config = { 35 '/': { 36 'tools.invirtwebstate.on': True, 37 }, 38 '/static': { 39 'tools.staticdir.root': static_dir, 40 'tools.staticdir.on': True, 41 'tools.staticdir.dir': static_dir, 42 } 43 } 44 45 authApp = cherrypy.tree.mount(InvirtWeb(), 46 '/auth', 47 app_config) 48 authApp.merge(conf_file) 41 49 unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(), 42 50 '/unauth', 43 {'/': {'tools.invirtwebstate.on': True}})51 app_config) 44 52 unauthApp.merge(conf_file) 45 53 cherrypy.config.update(conf_file)
Note: See TracChangeset
for help on using the changeset viewer.