Skip to content

Instantly share code, notes, and snippets.

@Jc2k
Created October 19, 2012 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jc2k/3917334 to your computer and use it in GitHub Desktop.
Save Jc2k/3917334 to your computer and use it in GitHub Desktop.
Many waterfalls
from buildbot.status.web.waterfall import WaterfallStatusResource
from buildbot.status.web.baseweb import WebStatus
class MyWebStatus(WebStatus):
def setupUsualPages(self, numbuilds, num_events, num_events_max):
self.setupUsualPages(numbuilds, num_events, num_events_max)
self.putChild("waterfalls", WaterfallsResource(
num_events=num_events,
num_events_max=num_events_max))
class WaterfallsResource(I_FORGOT_WHICH_BASECLASS):
def __init__(self, num_events, num_events_max):
self.num_events = num_events
self.num_events_max = num_events_max
def getChild(self, path, request):
return WaterfallStatusResource(
categories = [path],
num_events = self.num_events,
num_events_max = self.num_events_max)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment