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

Source Code for Module buildbot.status.web.about

 1  # This file is part of Buildbot.  Buildbot is free software: you can 
 2  # redistribute it and/or modify it under the terms of the GNU General Public 
 3  # License as published by the Free Software Foundation, version 2. 
 4  # 
 5  # This program is distributed in the hope that it will be useful, but WITHOUT 
 6  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
 8  # details. 
 9  # 
10  # You should have received a copy of the GNU General Public License along with 
11  # this program; if not, write to the Free Software Foundation, Inc., 51 
12  # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
13  # 
14  # Copyright Buildbot Team Members 
15   
16   
17  from buildbot.status.web.base import HtmlResource 
18  import buildbot 
19  import twisted 
20  import sys 
21  import jinja2 
22   
23 -class AboutBuildbot(HtmlResource):
24 pageTitle = "About this Buildbot" 25
26 - def content(self, request, cxt):
27 cxt.update(dict(buildbot=buildbot.version, 28 twisted=twisted.__version__, 29 jinja=jinja2.__version__, 30 python=sys.version, 31 platform=sys.platform)) 32 33 template = request.site.buildbot_service.templates.get_template("about.html") 34 template.autoescape = True 35 return template.render(**cxt)
36