Changeset 2652 for package_branches/invirt-web
- Timestamp:
- Dec 20, 2009, 5:26:48 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy/code
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/auth.fcgi
r2651 r2652 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/code/main.py
r2648 r2652 9 9 import datetime 10 10 import hmac 11 import os 11 12 import random 12 13 import sha … … 43 44 import ajaxterm 44 45 46 47 static_dir = os.path.join(os.path.dirname(__file__), 'static') 48 InvirtStatic = cherrypy.tools.staticdir.handler( 49 root=static_dir, 50 dir=static_dir, 51 section='/static') 52 45 53 class InvirtUnauthWeb(View): 54 static = InvirtStatic 55 46 56 @cherrypy.expose 47 57 @cherrypy.tools.mako(filename="/unauth.mako") … … 58 68 'from invirt import database'] 59 69 self._cp_config['request.error_response'] = self.handle_error 70 71 static = InvirtStatic 60 72 61 73 @cherrypy.expose -
package_branches/invirt-web/cherrypy/code/unauth.fcgi
r2651 r2652 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.