def stop_build(self, build, reason): """Stops the |build|.""" control = IControl(self.master) # request IControl from self.master. builder_control = control.getBuilder(build.getBuilder().getName()) assert builder_control build_control = builder_control.getBuild(build.getNumber()) assert build_control build_control.stopBuild(reason)
def getControl(self): if self.allowForce: return IControl(self.parent) return None
def getControl(self): if self.allowForce: return IControl(self.master) return None