[Buildbot-commits] buildbot/buildbot/status/web about.py, NONE, 1.1 baseweb.py, 1.18, 1.19 index.html, 1.2, 1.3

Brian Warner warner at users.sourceforge.net
Mon Aug 13 17:22:51 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4112/buildbot/status/web

Modified Files:
	baseweb.py index.html 
Added Files:
	about.py 
Log Message:
[project @ web: add 'about' page, improve index.html, update docs]

Original author: warner at lothar.com
Date: 2007-08-13 17:21:15+00:00

--- NEW FILE: about.py ---

from twisted.web import html
from buildbot.status.web.base import HtmlResource
import buildbot
import twisted
import sys

class AboutBuildbot(HtmlResource):
    title = "About this Buildbot"

    def body(self, request):
        data = ''
        data += '<h1>Welcome to the Buildbot</h1>\n'
        data += '<h2>Version Information</h2>\n'
        data += '<ul>\n'
        data += ' <li>Buildbot: %s</li>\n' % html.escape(buildbot.version)
        data += ' <li>Twisted: %s</li>\n' % html.escape(twisted.__version__)
        data += ' <li>Python: %s</li>\n' % html.escape(sys.version)
        data += ' <li>Buildmaster platform: %s</li>\n' % html.escape(sys.platform)
        data += '</ul>\n'

        data += '''
<h2>Source code</h2>

<p>Buildbot is a free software project, released under the terms of the
<a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.</p>

<p>Please visit the <a href="http://buildbot.net/">Buildbot Home Page</a> for
more information, including documentation, bug reports, and source
downloads.</p>
'''
        return data


Index: baseweb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/baseweb.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- baseweb.py	13 Aug 2007 08:20:51 -0000	1.18
+++ baseweb.py	13 Aug 2007 17:22:49 -0000	1.19
@@ -16,6 +16,7 @@
 from buildbot.status.web.builder import BuildersResource
 from buildbot.status.web.slaves import BuildSlavesResource
 from buildbot.status.web.xmlrpc import XMLRPCServer
+from buildbot.status.web.about import AboutBuildbot
 
 # this class contains the status services (WebStatus and the older Waterfall)
 # which can be put in c['status']. It also contains some of the resources
@@ -364,6 +365,7 @@
         #self.putChild("schedulers", SchedulersResource())
         self.putChild("one_line_per_build", OneLinePerBuild())
         self.putChild("xmlrpc", XMLRPCServer())
+        self.putChild("about", AboutBuildbot())
 
     def __repr__(self):
         if self.http_port is None:

Index: index.html
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/index.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- index.html	1 Aug 2007 23:42:32 -0000	1.2
+++ index.html	13 Aug 2007 17:22:49 -0000	1.3
@@ -11,6 +11,14 @@
 <ul>
   <li>the <a href="waterfall">Waterfall Display</a> will give you a
   time-oriented summary of recent buildbot activity.</li>
+
+  <li><a href="one_line_per_build">Recent Builds</a> are summarized here.</li>
+
+  <li><a href="buildslaves">Buildslave</a> information</li>
+  <li><a href="changes">ChangeSource</a> information.</li>
+
+  <br />
+  <li><a href="about">About this Buildbot</a></li>
 </ul>
 
 





More information about the Commits mailing list