Beispiel #1
0
    def getChild(self, path, req):
        if path == "stop":
            return self.stop(req)
        if path == "rebuild":
            return self.rebuild(req)
        if path == "steps":
            return StepsResource(self.build_status)

        return HtmlResource.getChild(self, path, req)
Beispiel #2
0
    def getChild(self, path, req):
        if path == "stop":
            return self.stop(req)
        if path == "cancel":
            return self.cancelBuild(req)
        if path == "stopchain":
            return self.stopchain(req)
        if path == "steps":
            return StepsResource(self.build_status)
        if path == "tests":
            return TestsResource(self.build_status)

        return HtmlResource.getChild(self, path, req)