]> andersk Git - sql.git/blobdiff - lib/python/mitsql/interface/__init__.py
begin restructuring
[sql.git] / lib / python / mitsql / interface / __init__.py
diff --git a/lib/python/mitsql/interface/__init__.py b/lib/python/mitsql/interface/__init__.py
new file mode 100644 (file)
index 0000000..41c4f7a
--- /dev/null
@@ -0,0 +1,15 @@
+import cherrypy
+
+from main import Root as root
+root = root()
+
+def map_uri():
+    print root.default()
+    #from cherrypy.lib.httpauth import parseAuthorization
+    #if not cherrypy.request.login:
+    #    authorization = cherrypy.request.headers.get('Authorization', None)
+    #    if authorization:
+    #        cherrypy.request.login = parseAuthorization(authorization)
+
+cherrypy.tools.map_uri = cherrypy.Tool('on_start_resource', map_uri)
+#cherrypy.tools.map_uri = cherrypy.Tool('before_request_body', map_uri)
This page took 0.273383 seconds and 4 git commands to generate.