Package web :: Package web :: Module application' :: Class auto_application
[hide private]
[frames] | no frames]

Class auto_application

source code

application --+
              |
             auto_application

Application similar to `application` but urls are constructed automatiacally using metaclass.

>>> app = auto_application()
>>> class hello(app.page):
...     def GET(self): return "hello, world"
...
>>> class foo(app.page):
...     path = '/foo/.*'
...     def GET(self): return "foo"
>>> app.request("/hello").data
'hello, world'
>>> app.request('/foo/bar').data
'foo'
Instance Methods [hide private]
 
__init__(self) source code

Inherited from application: add_mapping, add_processor, browser, cgirun, get_parent_app, handle, handle_with_processors, internalerror, load, notfound, request, run, wsgifunc

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: application.__init__