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

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

Issue 11425002: Optionally add project through buildbot onto the waterfall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Invert the git diffs Created 8 years 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 | Annotate | Revision Log
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 revision=self.original.revision,
68 project=self.original.project)
68 return Box([text], class_="Change") 69 return Box([text], class_="Change")
69 components.registerAdapter(ChangeBox, Change, IBox) 70 components.registerAdapter(ChangeBox, Change, IBox)
70 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698