[Buildbot-commits] buildbot/buildbot/status/web waterfall.py, 1.19, 1.20
Brian Warner
warner at users.sourceforge.net
Tue Sep 25 23:04:31 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3222/buildbot/status/web
Modified Files:
waterfall.py
Log Message:
[project @ waterfall.py: fix weird compression when show_events=false is used]
Original author: warner at lothar.com
Date: 2007-09-25 23:03:25+00:00
Index: waterfall.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/waterfall.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- waterfall.py 25 Sep 2007 22:50:36 -0000 1.19
+++ waterfall.py 25 Sep 2007 23:04:29 -0000 1.20
@@ -182,11 +182,20 @@
components.registerAdapter(EventBox, builder.Event, IBox)
-class Spacer(builder.Event):
+class Spacer:
+ implements(interfaces.IStatusEvent)
+
def __init__(self, start, finish):
self.started = start
self.finished = finish
+ def getTimes(self):
+ return (self.started, self.finished)
+ def getText(self):
+ return []
+ def getColor(self):
+ return None
+
class SpacerBox(components.Adapter):
implements(IBox)
@@ -661,6 +670,11 @@
try:
while True:
e = g.next()
+ # e might be builder.BuildStepStatus,
+ # builder.BuildStatus, builder.Event,
+ # waterfall.Spacer(builder.Event), or changes.Change .
+ # The showEvents=False flag means we should hide
+ # builder.Event .
if not showEvents and isinstance(e, builder.Event):
continue
break
More information about the Commits
mailing list