Home | Trees | Indices | Help |
|
---|
|
object --+ | Resource
Represents a resource or a folder on the webserver.
Inheritance from this class should be used when you need special and accessing request attributes.
When a request arrives at a resource, it looks first inside his files and resources. If no handler is found, it asks the get_render() method to return who will render(uri, req, resp) the request - default is self.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor for the Resource class.
|
Renders a request. Default action on a resource is doing nothing. Note: should be overriden as needed |
Adds a static file to the resource.
Note: if the file name is already present on the tree, it will get overriden |
Adds a resource to the resource.
Note: if this resource is already present on the tree, it will get overriden |
WSGI application callback. May not be called directly by the user. |
Returns the default render for the given request, uri and params. Default render is self. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 9 22:24:57 2009 | http://epydoc.sourceforge.net |