[Checkins] SVN: gocept.bsquare/branches/pcardune-setup/ Added links
to cruise builders
Adam Groszer
agroszer at gmail.com
Wed Apr 9 11:12:19 EDT 2008
Log message for revision 85188:
Added links to cruise builders
Changed:
U gocept.bsquare/branches/pcardune-setup/CHANGES.txt
U gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/status.py
-=-
Modified: gocept.bsquare/branches/pcardune-setup/CHANGES.txt
===================================================================
--- gocept.bsquare/branches/pcardune-setup/CHANGES.txt 2008-04-09 12:47:33 UTC (rev 85187)
+++ gocept.bsquare/branches/pcardune-setup/CHANGES.txt 2008-04-09 15:12:18 UTC (rev 85188)
@@ -1,5 +1,9 @@
0.1.0 2008-04-09
----------------
+Added links to cruise builders
+
+0.1.0 2008-04-09
+----------------
More options for configure:
- maxConcurrent: maximum number of concurrent builds
Modified: gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/status.py
===================================================================
--- gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/status.py 2008-04-09 12:47:33 UTC (rev 85187)
+++ gocept.bsquare/branches/pcardune-setup/src/gocept/bsquare/status.py 2008-04-09 15:12:18 UTC (rev 85188)
@@ -1,5 +1,6 @@
# An extended web status display providing a cruise-control-like UI.
+import urllib
import buildbot.status.web.base
import datetime
import os.path
@@ -22,7 +23,7 @@
return stat
def head(self, request):
- return ('<link href="%s" rel="stylesheet" type="text/css" />' %
+ return ('<link href="%s" rel="stylesheet" type="text/css" />' %
request.sibLink('cruise.css'))
def body(self, request):
@@ -37,7 +38,7 @@
data += "<h1>%s</h1>" % projectName
- builders = [status.getBuilder(x) for x in
+ builders = [status.getBuilder(x) for x in
status.getBuilderNames()]
# Setup filters
@@ -89,9 +90,11 @@
# Create detail view panels
for builder in builders:
activity = builder.getState()[0]
- data += '<div class="project %s %s"><h2>%s</h2>' % (self._builder_status(builder),
- activity, builder.getName())
- data += '<p>This builder is currently %s.</p>' % activity
+ data += '<div class="project %s %s"><h2>%s</h2>' % (
+ self._builder_status(builder),
+ activity, builder.getName())
+ data += '<p><a href="%s">This builder is currently %s.</a></p>' % (
+ request.childLink("../builders/" + urllib.quote(name)), activity)
data += "<ul>"
for x in range(1,6):
build = builder.getBuild(-x)
@@ -127,4 +130,3 @@
for image in ['headerbg.png', 'headerbg2.png', 'errorbg.png']:
data = open(os.path.join(STATIC_DIR, image)).read()
self.putChild(image, twisted.web.static.Data(data, 'image/png'))
-
More information about the Checkins
mailing list