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

Module status_json

source code

Simple JSON exporter.

Classes
  JsonResource
Base class for json data.
  HelpResource
  BuilderJsonResource
  BuildersJsonResource
  BuilderSlavesJsonResources
  BuildJsonResource
  AllBuildsJsonResource
  BuildsJsonResource
  BuildStepJsonResource
  BuildStepsJsonResource
  ChangeJsonResource
  ChangesJsonResource
  ChangeSourcesJsonResource
  ProjectJsonResource
  SlaveJsonResource
  SlavesJsonResource
  SourceStampJsonResource
  JsonStatusResource
Retrieves all json data.
Functions
 
RequestArg(request, arg, default) source code
 
RequestArgToBool(request, arg, default) source code
 
TwistedWebErrorAsDict(self, request)
Additional method for twisted.web.error.Error.
source code
 
TwistedWebErrorPageAsDict(self, request)
Additional method for twisted.web.error.Error.
source code
 
FilterOut(data)
Returns a copy with None, False, "", [], () and {} removed.
source code
 
ToHtml(text)
Convert a string in a wiki-style format into HTML.
source code
Variables
  FLAGS = ' - as_text\n - By default, application/json is us...
  EXAMPLES = ' - /json\n - Root node, that *doesn\'t* mean a...
  __package__ = 'buildbot.status.web'
Function Details

FilterOut(data)

source code 

Returns a copy with None, False, "", [], () and {} removed. Warning: converts tuple to list.


Variables Details

FLAGS

Value:
'''  - as_text
    - By default, application/json is used. Setting as_text=1 change t\
he type
      to text/plain and implicitly sets compact=0 and filter=1. Mainly\
 useful to
      look at the result in a web browser.
  - compact
    - By default, the json data is compact and defaults to 1. For easi\
...

EXAMPLES

Value:
'''  - /json
    - Root node, that *doesn\'t* mean all the data. Many things (like \
logs) must
      be explicitly queried for performance reasons.
  - /json/builders/
    - All builders.
  - /json/builders/<A_BUILDER>
    - A specific builder as compact text.
...