diff --git a/buildbot/sourcestamp.py b/buildbot/sourcestamp.py index 78a9b2b77ce..7d0b0bb41db 100644 --- a/buildbot/sourcestamp.py +++ b/buildbot/sourcestamp.py @@ -141,18 +141,6 @@ def getText(self): text.append("[patch]") return text - def getHTMLDict(self): - if self.revision is None: - return dict(rev='latest') - d = dict(rev=self.revision) - if self.branch: - d['branch'] = self.branch - if self.patch: - d['patch'] = True - d['repository'] = self.repository - d['project'] = self.project - return d - def asDict(self): result = {} # Constant diff --git a/buildbot/status/web/grid.py b/buildbot/status/web/grid.py index 9a6c55683ce..de0b9bf0fa9 100644 --- a/buildbot/status/web/grid.py +++ b/buildbot/status/web/grid.py @@ -2,6 +2,7 @@ from buildbot.status.web.base import HtmlResource from buildbot.status.web.base import build_get_class, path_to_builder, path_to_build +from buildbot.sourcestamp import SourceStamp class ANYBRANCH: pass # a flag value, used below @@ -142,8 +143,8 @@ def content(self, request, cxt): cxt.update({'categories': categories, 'branch': branch, 'ANYBRANCH': ANYBRANCH, - 'stamps': stamps, - }) + 'stamps': map(SourceStamp.asDict, stamps) + }) sortedBuilderNames = status.getBuilderNames()[:] sortedBuilderNames.sort() @@ -201,7 +202,7 @@ def content(self, request, cxt): cxt.update({'categories': categories, 'branch': branch, 'ANYBRANCH': ANYBRANCH, - 'stamps': stamps, + 'stamps': map(SourceStamp.asDict, stamps), }) sortedBuilderNames = status.getBuilderNames()[:] diff --git a/buildbot/status/web/templates/grid.html b/buildbot/status/web/templates/grid.html index 0899f039677..f1fc20ba797 100644 --- a/buildbot/status/web/templates/grid.html +++ b/buildbot/status/web/templates/grid.html @@ -13,7 +13,7 @@