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

Instance Methods
 
__init__(self, http_port=None, distrib_port=None, allowForce=None, public_html='public_html', site=None, numbuilds=20, num_events=200, num_events_max=None, auth=None, order_console_by_time=False, changecommentlink=None, revlink=None, projects=None, repositories=None, authz=None, logRotateLength=None, maxRotatedFiles=None)
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
 
getChangeSvc(self) source code
 
getPortnum(self) 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=None, public_html='public_html', site=None, numbuilds=20, num_events=200, num_events_max=None, auth=None, order_console_by_time=False, changecommentlink=None, revlink=None, projects=None, repositories=None, authz=None, logRotateLength=None, maxRotatedFiles=None)
(Constructor)

source code 
Run a web server that provides Buildbot status.

@type  http_port: int or L{twisted.application.strports} string
@param http_port: 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).

@type  distrib_port: int or L{twisted.application.strports} string
@param distrib_port: 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
                     (C{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.

@param allowForce: deprecated; use authz instead
@param auth: deprecated; use with authz

@param authz: a buildbot.status.web.authz.Authz instance giving the authorization
                   parameters for this view

@param 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.

@type site: None or L{twisted.web.server.Site}
@param site: Use this if you want to define your own object instead of
             using the default.`

@type numbuilds: int
@param numbuilds: 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.

@type num_events: int
@param num_events: Default number of events to show in the waterfall.

@type num_events_max: int
@param num_events_max: The maximum number of events that are allowed to be
shown in the waterfall.  The default value of C{None} will disable this
check

@type auth: a L{status.web.auth.IAuth} or C{None}
@param auth: an object that performs authentication to restrict access
             to the C{allowForce} features. Ignored if C{allowForce}
             is not C{True}. If C{auth} is C{None}, people can force or
             stop builds without auth.

@type order_console_by_time: bool
@param order_console_by_time: 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).

@type changecommentlink: callable, dict, tuple (2 or 3 strings) or C{None}
@param changecommentlink: adds links to ticket/bug ids in change comments,
    see buildbot.status.web.base.changecommentlink for details

@type revlink: callable, dict, string or C{None}
@param revlink: decorations revision ids with links to a web-view,
    see buildbot.status.web.base.revlink for details

@type projects: callable, dict or c{None}
@param projects: maps project identifiers to URLs, so that any project listed
    is automatically decorated with a link to it's front page.
    see buildbot.status.web.base.dictlink for details

@type repositories: callable, dict or c{None}
@param repositories: maps repository identifiers to URLs, so that any project listed
    is automatically decorated with a link to it's web view.
    see buildbot.status.web.base.dictlink for details

@type logRotateLength: None or int
@param logRotateLength: file size at which the http.log is rotated/reset.
    If not set, the value set in the buildbot.tac will be used, 
     falling back to the BuildMaster's default value (1 Mb).

@type maxRotatedFiles: None or int
@param maxRotatedFiles: number of old http.log files to keep during log rotation.
    If not set, the value set in the buildbot.tac will be used, 
     falling back to the BuildMaster's default value (10 files).        

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

Class Variable Details

__implemented__

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

__provides__

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