Package zephir :: Package monitor :: Package agentmanager :: Module web_resources :: Class ZephirClientResource
[frames] | no frames]

Class ZephirClientResource

source code

twisted.web.resource.Resource --+
                                |
                               ZephirClientResource

Liste des agents d'un client Zephir.

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, config, manager, client_name)
Initialize.
source code
 
getChild(self, agent_name, request)
Retrieve a 'child' resource from me.
source code
 
render_GET(self, request) source code

Inherited from twisted.web.resource.Resource: delEntity, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render, render_HEAD

Class Variables

Inherited from twisted.web.resource.Resource: isLeaf, server

Method Details

__init__(self, config, manager, client_name)
(Constructor)

source code 
Initialize.
Overrides: twisted.web.resource.Resource.__init__
(inherited documentation)

getChild(self, agent_name, request)

source code 

Retrieve a 'child' resource from me.

Implement this to create dynamic resource generation -- resources which are always available may be registered with self.putChild().

This will not be called if the class-level variable 'isLeaf' is set in your subclass; instead, the 'postpath' attribute of the request will be left as a list of the remaining path elements.

For example, the URL /foo/bar/baz will normally be:
 | site.resource.getChild('foo').getChild('bar').getChild('baz').
However, if the resource returned by 'bar' has isLeaf set to true, then the getChild call will never be made on it.
Overrides: twisted.web.resource.Resource.getChild
(inherited documentation)