Changeset 2652 for package_branches/invirt-web/cherrypy/code/main.py
- Timestamp:
- Dec 20, 2009, 5:26:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.