]> andersk Git - sql.git/blob - lib/python/mitsql/interface/__init__.py
begin restructuring
[sql.git] / lib / python / mitsql / interface / __init__.py
1 import cherrypy
2
3 from main import Root as root
4 root = root()
5
6 def map_uri():
7     print root.default()
8     #from cherrypy.lib.httpauth import parseAuthorization
9     #if not cherrypy.request.login:
10     #    authorization = cherrypy.request.headers.get('Authorization', None)
11     #    if authorization:
12     #        cherrypy.request.login = parseAuthorization(authorization)
13
14 cherrypy.tools.map_uri = cherrypy.Tool('on_start_resource', map_uri)
15 #cherrypy.tools.map_uri = cherrypy.Tool('before_request_body', map_uri)
This page took 0.311562 seconds and 5 git commands to generate.