Created
October 19, 2012 10:17
-
-
Save Jc2k/3917334 to your computer and use it in GitHub Desktop.
Many waterfalls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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