]> andersk Git - sql.git/blob - lib/python/mitsql/interface/main.py
begin restructuring
[sql.git] / lib / python / mitsql / interface / main.py
1 import cherrypy
2 from pprint import pformat
3
4 class Root(object):
5     def default(self, *args, **kw):
6         cherrypy.response.headers['Content-type'] = 'text/plain'
7         return pformat(dict(filter(lambda x: not x[0][:2] == '__', cherrypy.request.__dict__.items())))
8     default.exposed = True
9
10     def test(self):
11         return 'test'
12     test.exposed = True
13
This page took 0.047642 seconds and 5 git commands to generate.