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

Module base

source code

Classes [hide private]
  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 [hide private]
 
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_force_build_form(forceURL, useUserPasswd, on_all=False) 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 [hide private]
  css_classes = {0: 'success', 1: 'warnings', 2: 'failure', 3: '...
  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 [hide private]

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.


Variables Details [hide private]

css_classes

Value:
{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>
'''