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

Source Code for Module buildbot.status.web.about

 1   
 2  from buildbot.status.web.base import HtmlResource 
 3  import buildbot 
 4  import twisted 
 5  import sys 
 6  import jinja2 
 7   
8 -class AboutBuildbot(HtmlResource):
9 title = "About this Buildbot" 10
11 - def content(self, request, cxt):
12 cxt.update(dict(buildbot=buildbot.version, 13 twisted=twisted.__version__, 14 jinja=jinja2.__version__, 15 python=sys.version, 16 platform=sys.platform)) 17 18 template = request.site.buildbot_service.templates.get_template("about.html") 19 template.autoescape = True 20 return template.render(**cxt)
21