Package buildbot :: Package status :: Package web :: Module base
[frames] | no frames]

Module base

source code

Classes
  ITopBox
I represent a box in the top row of the waterfall display: the one which shows the status of the last build for each builder.
  ICurrentBox
I represent the 'current activity' box, just above the builder name.
  IBox
I represent a box in the waterfall display.
  IHTMLLog
  Box
  HtmlResource
  StaticHTML
  OneLineMixin
Functions
 
make_row(label, field)
Create a name/value row for the HTML.
source code
 
make_name_user_passwd_form(useUserPasswd)
helper function to create HTML prompt for 'name' when useUserPasswd is False or 'username' / 'password' prompt when True.
source code
 
make_stop_form(stopURL, useUserPasswd, on_all=False, label='Build') source code
 
make_extra_property_row(N)
helper function to create the html for adding extra build properties to a forced (or resubmitted) build.
source code
 
make_force_build_form(forceURL, useUserPasswd, on_all=False) source code
 
getAndCheckProperties(req)
Fetch custom build properties from the HTTP request of a "Force build" or "Resubmit build" HTML form.
source code
 
td(text='', parms={}, **props) source code
 
build_get_class(b)
Return the class to use for a finished build or buildstep, based on the result.
source code
 
path_to_root(request) source code
 
path_to_builder(request, builderstatus) source code
 
path_to_build(request, buildstatus) source code
 
path_to_step(request, stepstatus) source code
 
path_to_slave(request, slave) source code
 
path_to_change(request, change) source code
 
plural(word, words, num) source code
 
abbreviate_age(age) source code
 
map_branches(branches) source code
Variables
  css_classes = {None: '', 0: 'success', 1: 'warnings', 2: 'fail...
  ROW_TEMPLATE = '\n<div class="row">\n <span class="label">%(l...
  MINUTE = 60
  HOUR = 3600
  DAY = 86400
  WEEK = 604800
  MONTH = 2592000
  __package__ = 'buildbot.status.web'
Function Details

make_row(label, field)

source code 

Create a name/value row for the HTML.

`label` is plain text; it will be HTML-encoded.

`field` is a bit of HTML structure; it will not be encoded in any way.

make_extra_property_row(N)

source code 

helper function to create the html for adding extra build properties to a forced (or resubmitted) build. "N" is an integer inserted into the form names so that more than one property can be used in the form.

getAndCheckProperties(req)

source code 

Fetch custom build properties from the HTTP request of a "Force build" or "Resubmit build" HTML form. Check the names for valid strings, and return None if a problem is found. Return a new Properties object containing each property found in req.


Variables Details

css_classes

Value:
{None: '',
 0: 'success',
 1: 'warnings',
 2: 'failure',
 3: 'skipped',
 4: 'exception'}

ROW_TEMPLATE

Value:
'''
<div class="row">
  <span class="label">%(label)s</span>
  <span class="field">%(field)s</span>
</div>
'''