Changeset 2730 for package_branches/invirt-web/cherrypy-rebased/code
- Timestamp:
- Dec 20, 2009, 9:48:10 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased/code
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/auth.fcgi
r2729 r2730 36 36 'tools.invirtwebstate.on': True, 37 37 }, 38 '/static': {39 'tools.staticdir.root': static_dir,40 'tools.staticdir.on': True,41 'tools.staticdir.dir': static_dir,42 }43 38 } 44 39 -
package_branches/invirt-web/cherrypy-rebased/code/main.py
r2726 r2730 7 7 import datetime 8 8 import hmac 9 import os 9 10 import random 10 11 import sha … … 38 39 from view import View, revertStandardError 39 40 41 42 static_dir = os.path.join(os.path.dirname(__file__), 'static') 43 InvirtStatic = cherrypy.tools.staticdir.handler( 44 root=static_dir, 45 dir=static_dir, 46 section='/static') 47 40 48 class InvirtUnauthWeb(View): 49 static = InvirtStatic 50 41 51 @cherrypy.expose 42 52 @cherrypy.tools.mako(filename="/unauth.mako") … … 53 63 'from invirt import database'] 54 64 self._cp_config['request.error_response'] = self.handle_error 65 66 static = InvirtStatic 55 67 56 68 @cherrypy.expose -
package_branches/invirt-web/cherrypy-rebased/code/unauth.fcgi
r2729 r2730 36 36 'tools.invirtwebstate.on': True, 37 37 }, 38 '/static': {39 'tools.staticdir.root': static_dir,40 'tools.staticdir.on': True,41 'tools.staticdir.dir': static_dir,42 }43 38 } 44 39
Note: See TracChangeset
for help on using the changeset viewer.