Package buildbot :: Package status :: Package web :: Module olpb :: Class OneLinePerBuild
[frames] | no frames]

Class OneLinePerBuild

source code

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

This shows one line per build, combining all builders together. Useful
query arguments:

numbuilds=: how many lines to display
builder=: show only builds for this builder. Multiple builder= arguments
          can be used to see builds from any builder in the set.
reload=: reload the page after this many seconds

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, numbuilds=20)
Initialize.
source code
 
getChild(self, path, req)
Retrieve a 'child' resource from me.
source code
 
get_reload_time(self, request) source code
 
content(self, req, cxt) source code

Inherited from base.HtmlResource: getAuthz, getBuildmaster, 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.ContextMixin: getContext, getStatus, getTitle

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

Inherited from base.BuildLineMixin: get_line_values

Class Variables
  title = 'Recent Builds'

Inherited from base.HtmlResource: addSlash, contentType

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

Inherited from base.BuildLineMixin: LINE_TIME_FORMAT

Properties

Inherited from object: __class__

Method Details

__init__(self, numbuilds=20)
(Constructor)

source code 

Initialize.

Overrides: object.__init__
(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)