| Home | Trees | Indices | Help |
|---|
|
|
Web application (from web.py)
|
|||
|
Reloader Checks to see if any loaded modules have changed on disk and, if so, reloads them. |
|||
|
application Application to delegate requests based on path. |
|||
|
auto_application Application similar to `application` but urls are constructed automatiacally using metaclass. |
|||
|
subdir_application Application to delegate requests based on path. |
|||
|
subdomain_application Application to delegate requests based on the host. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ =
|
|||
|
|||
Returns a method that takes one argument and calls the method named prefix+arg,
calling `notfound()` if there isn't one. Example:
urls = ('/prefs/(.*)', 'prefs')
class prefs:
GET = autodelegate('GET_')
def GET_password(self): pass
def GET_privacy(self): pass
`GET_password` would get called for `/prefs/password` while `GET_privacy` for
`GET_privacy` gets called for `/prefs/privacy`.
If a user visits `/prefs/password/change` then `GET_password(self, '/change')`
is called.
|
Converts a load hook into an application processor. >>> app = auto_application() >>> def f(): "something done before handling request" ... >>> app.add_processor(loadhook(f)) |
Converts an unload hook into an application processor. >>> app = auto_application() >>> def f(): "something done after handling request" ... >>> app.add_processor(unloadhook(f)) |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 4 09:57:29 2010 | http://epydoc.sourceforge.net |