[Checkins] SVN: Sandbox/ctheune/buildbot/ - fixed any

Christian Theune ct at gocept.com
Tue May 8 16:57:50 EDT 2007


Log message for revision 75635:
   - fixed any
   - added larger background image for grey areas
  

Changed:
  U   Sandbox/ctheune/buildbot/buildbot.css
  U   Sandbox/ctheune/buildbot/html2.py

-=-
Modified: Sandbox/ctheune/buildbot/buildbot.css
===================================================================
--- Sandbox/ctheune/buildbot/buildbot.css	2007-05-08 20:52:27 UTC (rev 75634)
+++ Sandbox/ctheune/buildbot/buildbot.css	2007-05-08 20:57:49 UTC (rev 75635)
@@ -32,7 +32,7 @@
     margin:1em;
 }
 .project, #status-blocks div {
-    background-image:url(bodybg.png);
+    background-image:url(greybg.png);
     background-position:center top;
     background-repeat:repeat-x;
 }

Modified: Sandbox/ctheune/buildbot/html2.py
===================================================================
--- Sandbox/ctheune/buildbot/html2.py	2007-05-08 20:52:27 UTC (rev 75634)
+++ Sandbox/ctheune/buildbot/html2.py	2007-05-08 20:57:49 UTC (rev 75635)
@@ -115,10 +115,8 @@
         # Gah.
         if filter_status == 'None':
             filter_status = None
-        elif filter_status == "":
-            filter_status = NO_FILTER
-
-        if filter_status != NO_FILTER:
+        # Double-gah!
+        if filter_status != "any":
             filters.append(lambda x:self._builder_status(x) == filter_status)
 
         filter_prefix = request.args.get('prefix', [None])[0] or 'zope.'
@@ -141,11 +139,11 @@
                 selected = ""
             data += '<div class="%s"><h3><label><input type="radio" name="status" value="%s" %s/> %s</label></h3><p>%s projects</p></div>' % (stat, stat, selected, stat, len(affected))
 
-        if filter_status is NO_FILTER:
+        if filter_status == "any":
             selected = 'checked="checked"'
         else:
             selected = ''
-        data += '<div><h3><label><input type="radio" name="status" value="" %s/> Any</label></h3><p>&nbsp;</p></div>' % selected
+        data += '<div><h3><label><input type="radio" name="status" value="any" %s/> Any</label></h3><p>&nbsp;</p></div>' % selected
 
         data += "</div>"
         data += '<div class="clear"/>'



More information about the Checkins mailing list