Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: third_party/buildbot_8_4p1/buildbot/status/web/changes.py

Issue 7276032: Make ChromiumStatus work with 0.8.4. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/tools/build
Patch Set: fix copyright, comment Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # This file is part of Buildbot. Buildbot is free software: you can 1 # This file is part of Buildbot. Buildbot is free software: you can
2 # redistribute it and/or modify it under the terms of the GNU General Public 2 # redistribute it and/or modify it under the terms of the GNU General Public
3 # License as published by the Free Software Foundation, version 2. 3 # License as published by the Free Software Foundation, version 2.
4 # 4 #
5 # This program is distributed in the hope that it will be useful, but WITHOUT 5 # This program is distributed in the hope that it will be useful, but WITHOUT
6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
8 # details. 8 # details.
9 # 9 #
10 # You should have received a copy of the GNU General Public License along with 10 # You should have received a copy of the GNU General Public License along with
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return ChangeResource(changeid) 56 return ChangeResource(changeid)
57 57
58 class ChangeBox(components.Adapter): 58 class ChangeBox(components.Adapter):
59 implements(IBox) 59 implements(IBox)
60 60
61 def getBox(self, req): 61 def getBox(self, req):
62 url = req.childLink("../changes/%d" % self.original.number) 62 url = req.childLink("../changes/%d" % self.original.number)
63 template = req.site.buildbot_service.templates.get_template("change_macr os.html") 63 template = req.site.buildbot_service.templates.get_template("change_macr os.html")
64 text = template.module.box_contents(url=url, 64 text = template.module.box_contents(url=url,
65 who=self.original.getShortAuthor(), 65 who=self.original.getShortAuthor(),
66 pageTitle=self.original.comments) 66 pageTitle=self.original.comments,
67 revision=self.original.revision)
67 return Box([text], class_="Change") 68 return Box([text], class_="Change")
68 components.registerAdapter(ChangeBox, Change, IBox) 69 components.registerAdapter(ChangeBox, Change, IBox)
69 70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698