]> andersk Git - sql.git/blobdiff - lib/python/mitsql/interface/main.py
begin restructuring
[sql.git] / lib / python / mitsql / interface / main.py
diff --git a/lib/python/mitsql/interface/main.py b/lib/python/mitsql/interface/main.py
new file mode 100644 (file)
index 0000000..39f8591
--- /dev/null
@@ -0,0 +1,13 @@
+import cherrypy
+from pprint import pformat
+
+class Root(object):
+    def default(self, *args, **kw):
+        cherrypy.response.headers['Content-type'] = 'text/plain'
+        return pformat(dict(filter(lambda x: not x[0][:2] == '__', cherrypy.request.__dict__.items())))
+    default.exposed = True
+
+    def test(self):
+        return 'test'
+    test.exposed = True
+
This page took 0.024296 seconds and 4 git commands to generate.