[Buildbot-commits] buildbot/buildbot/status/web build.py, 1.10, 1.11 builder.py, 1.8, 1.9

Brian Warner warner at users.sourceforge.net
Thu Sep 27 22:51:25 UTC 2007


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

Modified Files:
	build.py builder.py 
Log Message:
[project @ web: Builder/Build: use a relative link to the welcome page]

Original author: warner at lothar.com
Date: 2007-09-27 22:39:16+00:00

Index: build.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/build.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- build.py	27 Sep 2007 22:51:18 -0000	1.10
+++ build.py	27 Sep 2007 22:51:23 -0000	1.11
@@ -28,10 +28,9 @@
     def body(self, req):
         b = self.build_status
         status = self.getStatus(req)
-        buildbotURL = status.getBuildbotURL()
         projectName = status.getProjectName()
-        data = '<div class="title"><a href="%s">%s</a></div>\n'%(buildbotURL,
-                                                                 projectName)
+        data = ('<div class="title"><a href="../../../..">%s</a></div>\n'
+                % projectName)
         # the color in the following line gives python-mode trouble
         builder_name = b.getBuilder().getName()
         data += ("<h1><a href=\"../..\">Builder %s</a>: Build #%d</h1>\n"

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/builder.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- builder.py	27 Sep 2007 22:51:10 -0000	1.8
+++ builder.py	27 Sep 2007 22:51:23 -0000	1.9
@@ -53,10 +53,9 @@
         slaves = b.getSlaves()
         connected_slaves = [s for s in slaves if s.isConnected()]
 
-        buildbotURL = status.getBuildbotURL()
         projectName = status.getProjectName()
 
-        data = "<a href=\"%s\">%s</a>\n" % (buildbotURL, projectName)
+        data = '<a href="../..">%s</a>\n' % projectName
 
         data += "<h1>Builder: %s</h1>\n" % html.escape(b.getName())
 





More information about the Commits mailing list