def get_line_values(self, req, build, include_builder=True): ''' Collect the data needed for each line display ''' builder_name = build.getBuilder().getName() results = build.getResults() text = build.getText() rev = str(build.getProperty("got_revision", "??")) css_class = css_classes.get(results, "") repo = build.getSourceStamp().repository if type(text) == list: text = " ".join(text) values = {'class': css_class, 'builder_name': builder_name, 'buildnum': build.getNumber(), 'results': css_class, 'text': " ".join(build.getText()), 'buildurl': path_to_build(req, build), 'builderurl': path_to_builder(req, build.getBuilder()), 'rev': rev, 'rev_repo' : repo, 'time': time.strftime(self.LINE_TIME_FORMAT, time.localtime(build.getTimes()[0])), 'text': text, 'include_builder': include_builder } return values
def get_line_values(self, req, build, include_builder=True): """ Collect the data needed for each line display """ builder_name = build.getBuilder().getName() results = build.getResults() text = build.getText() try: rev = build.getProperty("got_revision") if rev is None: rev = "??" except KeyError: rev = "??" rev = str(rev) css_class = css_classes.get(results, "") repo = build.getSourceStamp().repository if type(text) == list: text = " ".join(text) values = { "class": css_class, "builder_name": builder_name, "buildnum": build.getNumber(), "results": css_class, "text": " ".join(build.getText()), "buildurl": path_to_build(req, build), "builderurl": path_to_builder(req, build.getBuilder()), "rev": rev, "rev_repo": repo, "time": time.strftime(self.LINE_TIME_FORMAT, time.localtime(build.getTimes()[0])), "text": text, "include_builder": include_builder, } return values
def get_line_values(self, req, build, include_builder=True): ''' Collect the data needed for each line display ''' builder_name = build.getBuilder().getName() results = build.getResults() text = build.getText() try: rev = build.getProperty("got_revision") if rev is None: rev = "??" except KeyError: rev = "??" rev = str(rev) css_class = css_classes.get(results, "") repo = build.getSourceStamp().repository if type(text) == list: text = " ".join(text) values = { 'class': css_class, 'builder_name': builder_name, 'buildnum': build.getNumber(), 'results': css_class, 'text': " ".join(build.getText()), 'buildurl': path_to_build(req, build), 'builderurl': path_to_builder(req, build.getBuilder()), 'rev': rev, 'rev_repo': repo, 'time': time.strftime(self.LINE_TIME_FORMAT, time.localtime(build.getTimes()[0])), 'text': text, 'include_builder': include_builder } return values