Package buildbot :: Package status :: Package web :: Module baseweb :: Class WebStatus
[frames] | no frames]

Class WebStatus

source code

 twisted.application.service.Service --+    
                                       |    
twisted.application.service.MultiService --+
                                           |
                                          WebStatus
Known Subclasses:

Instance Methods
 
__init__(self, http_port=None, distrib_port=None, allowForce=False, public_html='public_html', site=None, numbuilds=20, num_events=200, num_events_max=None, auth=None, order_console_by_time=False)
Run a web server that provides Buildbot status.
source code
 
setupUsualPages(self, numbuilds, num_events, num_events_max) source code
 
__repr__(self) source code
 
setServiceParent(self, parent) source code
 
setupSite(self) source code
 
putChild(self, name, child_resource)
This behaves a lot like root.putChild() .
source code
 
registerChannel(self, channel) source code
 
stopService(self) source code
 
getStatus(self) source code
 
getControl(self) source code
 
getChangeSvc(self) source code
 
getPortnum(self) source code
 
isUsingUserPasswd(self)
Returns boolean to indicate if this WebStatus uses authentication
source code
 
authUser(self, user, passwd)
Check that user/passwd is a valid user/pass tuple and can should be allowed to perform the action.
source code

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService, startService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName

Class Variables
  __implemented__ = <implementedBy buildbot.status.web.baseweb.W...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from twisted.application.service.Service: name, parent, running

Method Details

__init__(self, http_port=None, distrib_port=None, allowForce=False, public_html='public_html', site=None, numbuilds=20, num_events=200, num_events_max=None, auth=None, order_console_by_time=False)
(Constructor)

source code 

Run a web server that provides Buildbot status.

Parameters:
  • http_port (int or twisted.application.strports string) - a strports specification describing which port the buildbot should use for its web server, with the Waterfall display as the root page. For backwards compatibility this can also be an int. Use 'tcp:8000' to listen on that port, or 'tcp:12345:interface=127.0.0.1' if you only want local processes to connect to it (perhaps because you are using an HTTP reverse proxy to make the buildbot available to the outside world, and do not want to make the raw port visible).
  • distrib_port (int or twisted.application.strports string) - Use this if you want to publish the Waterfall page using web.distrib instead. The most common case is to provide a string that is an absolute pathname to the unix socket on which the publisher should listen (os.path.expanduser(~/.twistd-web-pb) will match the default settings of a standard twisted.web 'personal web server'). Another possibility is to pass an integer, which means the publisher should listen on a TCP socket, allowing the web server to be on a different machine entirely. Both forms are provided for backwards compatibility; the preferred form is a strports specification like 'unix:/home/buildbot/.twistd-web-pb'. Providing a non-absolute pathname will probably confuse the strports parser.
  • allowForce - boolean, if True then the webserver will allow visitors to trigger and cancel builds
  • public_html - the path to the public_html directory for this display, either absolute or relative to the basedir. The default is 'public_html', which selects BASEDIR/public_html.
  • site (None or twisted.web.server.Site) - Use this if you want to define your own object instead of using the default.`
  • numbuilds (int) - Default number of entries in lists at the /one_line_per_build and /builders/FOO URLs. This default can be overriden both programatically --- by passing the equally named argument to constructors of OneLinePerBuildOneBuilder and OneLinePerBuild --- and via the UI, by tacking ?numbuilds=xy onto the URL.
  • num_events (int) - Defaualt number of events to show in the waterfall.
  • num_events_max (int) - The maximum number of events that are allowed to be shown in the waterfall. The default value of None will disable this check
  • auth (a status.web.auth.IAuth or None) - an object that performs authentication to restrict access to the allowForce features. Ignored if allowForce is not True. If auth is None, people can force or stop builds without auth.
  • order_console_by_time (bool) - Whether to order changes (commits) in the console view according to the time they were created (for VCS like Git) or according to their integer revision numbers (for VCS like SVN).
Overrides: twisted.application.service.MultiService.__init__

setServiceParent(self, parent)

source code 
Overrides: twisted.application.service.Service.setServiceParent

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

authUser(self, user, passwd)

source code 

Check that user/passwd is a valid user/pass tuple and can should be allowed to perform the action. If this WebStatus is not password protected, this function returns False.


Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.web.baseweb.WebStatus>

__provides__

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