Package buildbot :: Package status :: Package web :: Module builder :: Class StatusResourceBuilder
[frames] | no frames]

Class StatusResourceBuilder

source code

twisted.web.resource.Resource --+    
                                |    
                   object --+   |    
                            |   |    
            base.ContextMixin --+    
                                |    
                base.HtmlResource --+
                                    |
              base.BuildLineMixin --+
                                    |
                                   StatusResourceBuilder

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, builder_status)
Initialize.
source code
 
getTitle(self, request) source code
 
builder(self, build, req) source code
 
content(self, req, cxt)
Generate content using the standard layout and the result of the body method.
source code
 
force(self, req, auth_ok=False) source code
 
ping(self, req) source code
 
cancelbuild(self, req) source code
 
stopchange(self, req, auth_ok=False)
Cancel all pending builds that include a given numbered change.
source code
 
getChild(self, path, req)
Retrieve a 'child' resource from me.
source code

Inherited from base.HtmlResource: render

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

Inherited from base.ContextMixin: getAuthz, getBuildmaster, getContext, getStatus

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from base.BuildLineMixin: get_line_values

Class Variables
  addSlash = True

Inherited from base.HtmlResource: contentType, title

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

Inherited from base.BuildLineMixin: LINE_TIME_FORMAT

Properties

Inherited from object: __class__

Method Details

__init__(self, builder_status)
(Constructor)

source code 

Initialize.

Overrides: object.__init__
(inherited documentation)

getTitle(self, request)

source code 
Overrides: base.ContextMixin.getTitle

content(self, req, cxt)

source code 

Generate content using the standard layout and the result of the body method.

This is suitable for the case where a resource just wants to generate the body of a page. It depends on another method, body, being defined to accept the request object and return a str. render will call this method and to generate the response body.

Overrides: base.HtmlResource.content
(inherited documentation)

getChild(self, path, req)

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)