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

Class StatusResourceBuilder

source code

twisted.web.resource.Resource --+    
                                |    
                base.HtmlResource --+
                                    |
                base.OneLineMixin --+
                                    |
                                   StatusResourceBuilder

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, builder_status, builder_control)
Initialize.
source code
 
getTitle(self, request) source code
 
build_line(self, build, req) source code
 
request_line(self, build_request, req) source code
 
body(self, req) source code
 
force(self, req)
Custom properties can be passed from the web form.
source code
 
ping(self, req) source code
 
cancel(self, req) source code
 
getChild(self, path, req)
Retrieve a 'child' resource from me.
source code

Inherited from base.HtmlResource: authUser, content, fillTemplate, footer, getChangemaster, getControl, getStatus, head, isUsingUserPasswd, path_to_root, render

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

Inherited from base.OneLineMixin: get_line_values, make_line

Class Variables
  addSlash = True

Inherited from base.HtmlResource: contentType, title

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

Inherited from base.OneLineMixin: LINE_TIME_FORMAT

Method Details

__init__(self, builder_status, builder_control)
(Constructor)

source code 

Initialize.

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

getTitle(self, request)

source code 
Overrides: base.HtmlResource.getTitle

body(self, req)

source code 
Overrides: base.HtmlResource.body

force(self, req)

source code 

Custom properties can be passed from the web form. To do this, subclass this class, overriding the force() method. You can then determine the properties (usually from form values, by inspecting req.args), then pass them to this superclass force method.

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)