Changeset 2655 for package_branches/invirt-web/cherrypy/code/invirt.fcgi
- Timestamp:
- Dec 20, 2009, 8:26:02 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/invirt.fcgi
- Property svn:executable deleted
r2654 r2655 1 1 #!/usr/bin/python 2 """Main FastCGI entry point for unauthenticatedweb interface"""2 """Main FastCGI entry point for web interface""" 3 3 4 4 import cherrypy 5 5 import os 6 6 import sys 7 from main import InvirtUnauthWeb 7 8 import main 8 9 9 10 dev = False … … 16 17 17 18 With `config`, run standalone with CherryPy config from `config`. 19 20 Run this script as either 'auth.fcgi' or 'unauth.fcgi', to get 21 the authenticated or unauthenticated site respectively. 18 22 """ % sys.argv[0] 19 23 sys.exit(2) … … 35 39 }, 36 40 } 37 38 app = cherrypy.tree.mount(InvirtUnauthWeb(), 39 '/', 40 app_config) 41 42 if os.path.basename(sys.argv[0]).startswith('auth'): 43 root = InvirtWeb() 44 elif os.path.basename(sys.argv[0]).startswith('unauth'): 45 root = InvirtUnauthWeb() 46 else: 47 usage() 48 49 app = cherrypy.tree.mount(root, '/', app_config) 41 50 app.merge(conf_file) 42 51 cherrypy.config.update(conf_file)
Note: See TracChangeset
for help on using the changeset viewer.