[Buildbot-commits] buildbot/buildbot/status/web base.py, 1.11, 1.12 build.py, 1.7, 1.8 builder.py, 1.7, 1.8
Brian Warner
warner at users.sourceforge.net
Thu Sep 27 22:51:12 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18818/buildbot/status/web
Modified Files:
base.py build.py builder.py
Log Message:
[project @ web: update HTML titles of many pages]
Original author: warner at lothar.com
Date: 2007-09-27 19:32:50+00:00
Index: base.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/base.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- base.py 26 Sep 2007 09:41:11 -0000 1.11
+++ base.py 27 Sep 2007 22:51:10 -0000 1.12
@@ -133,7 +133,7 @@
class HtmlResource(resource.Resource):
# this is a cheap sort of template thingy
contentType = "text/html; charset=UTF-8"
- title = "Dummy"
+ title = "Buildbot"
addSlash = False # adapted from Nevow
def getChild(self, path, request):
Index: build.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/build.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- build.py 12 Aug 2007 07:44:06 -0000 1.7
+++ build.py 27 Sep 2007 22:51:10 -0000 1.8
@@ -12,7 +12,6 @@
# builders/$builder/builds/$buildnum
class StatusResourceBuild(HtmlResource):
- title = "Build"
addSlash = True
def __init__(self, build_status, build_control, builder_control):
@@ -21,6 +20,11 @@
self.build_control = build_control
self.builder_control = builder_control
+ def getTitle(self, request):
+ return ("Buildbot: %s Build #%d" %
+ (html.escape(self.builder_status.getName()),
+ self.build_status.getNumber()))
+
def body(self, req):
b = self.build_status
status = self.getStatus(req)
Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/builder.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- builder.py 12 Aug 2007 22:22:57 -0000 1.7
+++ builder.py 27 Sep 2007 22:51:10 -0000 1.8
@@ -21,6 +21,9 @@
self.builder_status = builder_status
self.builder_control = builder_control
+ def getTitle(self, request):
+ return "Buildbot: %s" % html.escape(self.builder_status.getName())
+
def build_line(self, build, req):
buildnum = build.getNumber()
buildurl = "builds/%d" % buildnum
More information about the Commits
mailing list