def setupUsualPages(self, numbuilds, num_events, num_events_max): #self.putChild("", IndexOrWaterfallRedirection()) self.putChild( "waterfall", WaterfallStatusResource(num_events=num_events, num_events_max=num_events_max)) self.putChild("grid", GridStatusResource()) self.putChild( "console", ConsoleStatusResource(orderByTime=self.orderConsoleByTime)) self.putChild("tgrid", TransposedGridStatusResource()) self.putChild( "builders", BuildersResource(numbuilds=numbuilds)) # has builds/steps/logs self.putChild("one_box_per_builder", Redirect("builders")) self.putChild("changes", ChangesResource()) self.putChild("buildslaves", BuildSlavesResource()) self.putChild("buildstatus", BuildStatusStatusResource()) self.putChild("one_line_per_build", OneLinePerBuild(numbuilds=numbuilds)) self.putChild("about", AboutBuildbot()) self.putChild("authfail", AuthFailResource()) self.putChild("authzfail", AuthzFailResource()) self.putChild("users", UsersResource()) self.putChild("login", LoginResource()) self.putChild("logout", LogoutResource())
def getChild(self, path, req): s = self.getStatus(req) if path in s.getBuilderNames(): builder_status = s.getBuilder(path) return BuildsMatrix(builder_status) return BuildersResource.getChild(self, path, req)
def getChild(self, path, req): if path == "builders": return BuildersResource(self.project, self.numbuilds) elif path == "comparison": return BranchComparisonResource(self.project, self.numbuilds) return HtmlResource.getChild(self, path, req)
def setupUsualPages(self): #self.putChild("", IndexOrWaterfallRedirection()) self.putChild("waterfall", WaterfallStatusResource()) self.putChild("builders", BuildersResource()) # has builds/steps/logs self.putChild("changes", ChangesResource()) self.putChild("buildslaves", BuildSlavesResource()) #self.putChild("schedulers", SchedulersResource()) self.putChild("one_line_per_build", OneLinePerBuild()) self.putChild("one_box_per_builder", OneBoxPerBuilder()) self.putChild("xmlrpc", XMLRPCServer()) self.putChild("about", AboutBuildbot())
def getChild(self, path, req): if path == '': return Redirect('..') s = self.getStatus(req) if path in s.getBuilderNames(): builder_status = s.getBuilder(path) builder_control = None c = self.getControl(req) if c: builder_control = c.getBuilder(path) return JhStatusResourceBuilder(builder_status, builder_control) return BuildersResource.getChild(self, path, req)
def getChild(self, path, req): if path == "builders": return BuildersResource(self.project, self.numbuilds) return HtmlResource.getChild(self, path, req)