[Buildbot-commits] buildbot/buildbot/status/web builder.py, 1.4, 1.5

Brian Warner warner at users.sourceforge.net
Thu Aug 2 00:27:06 UTC 2007


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

Modified Files:
	builder.py 
Log Message:
[project @ waterfall: fix 'force' button]

Original author: warner at lothar.com
Date: 2007-08-02 00:19:56+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/builder.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- builder.py	1 Aug 2007 22:09:19 -0000	1.4
+++ builder.py	2 Aug 2007 00:27:04 -0000	1.5
@@ -98,7 +98,7 @@
         r = "The web-page 'force build' button was pressed by '%s': %s\n" \
             % (name, reason)
         log.msg("web forcebuild of builder '%s', branch='%s', revision='%s'"
-                % (self.builder.name, branch, revision))
+                % (self.builder_status.getName(), branch, revision))
 
         if not self.builder_control:
             # TODO: tell the web user that their request was denied
@@ -122,19 +122,19 @@
         # button, use their name instead of None, so they'll be informed of
         # the results.
         s = SourceStamp(branch=branch, revision=revision)
-        req = BuildRequest(r, s, self.builder.getName())
+        req = BuildRequest(r, s, self.builder_status.getName())
         try:
             self.builder_control.requestBuildSoon(req)
         except interfaces.NoSlaveError:
             # TODO: tell the web user that their request could not be
             # honored
             pass
-        return Redirect("..")
+        return Redirect("../..")
 
     def ping(self, req):
-        log.msg("web ping of builder '%s'" % self.builder.name)
+        log.msg("web ping of builder '%s'" % self.builder_status.getName())
         self.builder_control.ping() # TODO: there ought to be an ISlaveControl
-        return Redirect("..")
+        return Redirect("../..")
 
     def getChild(self, path, req):
         if path == "force":
@@ -150,7 +150,7 @@
             return NoResource("events are unavailable until code gets fixed")
             filename = req.postpath.pop(0)
             req.prepath.append(filename)
-            e = self.builder.statusbag.getEventNumbered(num)
+            e = self.builder_status.getEventNumbered(num)
             if not e:
                 return NoResource("No such event '%d'" % num)
             file = e.files.get(filename, None)





More information about the Commits mailing list