- Timestamp:
- Dec 20, 2009, 9:48:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.