Package buildbot :: Package status :: Package web :: Module logs :: Class TextLog
[frames] | no frames]

Class TextLog

source code

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

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, original)
Initialize.
source code
 
getChild(self, path, req)
Retrieve a 'child' resource from me.
source code
 
content(self, entries) source code
 
render_HEAD(self, req)
Default handling of HEAD method.
source code
 
render_GET(self, req) source code
 
finished(self) source code

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

Class Variables
  asText = False
  subscribed = False
  __implemented__ = <implementedBy buildbot.status.web.logs.Text...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

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

Method Details

__init__(self, original)
(Constructor)

source code 

Initialize.

Overrides: twisted.web.resource.Resource.__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)

render_HEAD(self, req)

source code 

Default handling of HEAD method.

I just return self.render_GET(request). When method is HEAD, the framework will handle this correctly.

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

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.web.logs.TextLog>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x1948450>