Package buildbot :: Package status :: Package web :: Module status_json :: Class AllBuildsJsonResource
[frames] | no frames]

Class AllBuildsJsonResource

source code

twisted.web.resource.Resource --+    
                                |    
                     JsonResource --+
                                    |
                                   AllBuildsJsonResource
Known Subclasses:

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, status, builder_status)
Adds transparent lazy-child initialization.
source code
 
getChild(self, path, request)
Retrieve a 'child' resource from me.
source code
 
asDict(self, request)
Generates the json dictionary.
source code

Inherited from JsonResource: content, getChildWithDefault, putChild, render_GET

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

Class Variables
  help = 'All the builds that were run on a builder.\n'
  title = 'AllBuilds'

Inherited from JsonResource: cache_seconds, contentType, level

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

Method Details

__init__(self, status, builder_status)
(Constructor)

source code 

Adds transparent lazy-child initialization.

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

getChild(self, path, 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.

Parameters:
  • path - a string, describing the child
  • request - a twisted.web.server.Request specifying meta-information about the request that is being made for this child.
Overrides: twisted.web.resource.Resource.getChild
(inherited documentation)

asDict(self, request)

source code 

Generates the json dictionary.

By default, renders every childs.

Overrides: JsonResource.asDict
(inherited documentation)