[Buildbot-commits] buildbot/buildbot/status html.py,1.67,1.68

Fred L. Drake fdrake at users.sourceforge.net
Fri Sep 2 15:40:43 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11461/buildbot/status

Modified Files:
	html.py 
Log Message:
only show the "Ping Builder" button if the build control is available;
the user sees an exception otherwise


Index: html.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/html.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- html.py	1 Sep 2005 20:53:21 -0000	1.67
+++ html.py	2 Sep 2005 15:40:41 -0000	1.68
@@ -418,14 +418,15 @@
             to force this build to execute at this time.</p>
             """
 
-        pingURL = urllib.quote(request.childLink("ping"))
-        data += """
-        <form action="%s" class='command pingbuilder'>
-        <p>To ping a builder, push the 'Ping' button</p>
+        if self.control is not None:
+            pingURL = urllib.quote(request.childLink("ping"))
+            data += """
+            <form action="%s" class='command pingbuilder'>
+            <p>To ping a builder, push the 'Ping' button</p>
 
-        <input type="submit" value="Ping Builder" />
-        </form>
-        """ % pingURL
+            <input type="submit" value="Ping Builder" />
+            </form>
+            """ % pingURL
 
         return data
 





More information about the Commits mailing list