[Buildbot-commits] buildbot/buildbot/changes changes.py,1.30,1.31
Brian Warner
warner at users.sourceforge.net
Wed Aug 1 22:08:33 UTC 2007
- Previous message (by thread): [Buildbot-commits] buildbot/buildbot/status/web base.py, 1.1, 1.2 baseweb.py, 1.2, 1.3 build.py, 1.1, 1.2 builder.py, 1.1, 1.2 changes.py, 1.1, 1.2 step.py, 1.1, 1.2 tests.py, 1.1, 1.2 waterfall.py, 1.6, 1.7
- Next message (by thread): [Buildbot-commits] buildbot/buildbot interfaces.py,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/buildbot/buildbot/buildbot/changes
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29223/buildbot/changes
Modified Files:
changes.py
Log Message:
[project @ web-refactoring: get most of the Waterfall sub-pages working again]
Original author: warner at lothar.com
Date: 2007-07-30 23:57:02+00:00
Index: changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/changes.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- changes.py 11 Dec 2006 09:06:34 -0000 1.30
+++ changes.py 1 Aug 2007 22:08:31 -0000 1.31
@@ -104,6 +104,23 @@
'comments': html.PRE(self.comments) }
return html_tmpl % kwargs
+ def get_HTML_box(self, url):
+ """Return the contents of a TD cell for the waterfall display.
+
+ @param url: the URL that points to an HTML page that will render
+ using our asHTML method. The Change is free to use this or ignore it
+ as it pleases.
+
+ @return: the HTML that will be put inside the table cell. Typically
+ this is just a single href named after the author of the change and
+ pointing at the passed-in 'url'.
+ """
+ who = self.getShortAuthor()
+ return '<a href="%s">%s</a>' % (url, html.escape(who))
+
+ def getShortAuthor(self):
+ return self.who
+
def getTime(self):
if not self.when:
return "?"
- Previous message (by thread): [Buildbot-commits] buildbot/buildbot/status/web base.py, 1.1, 1.2 baseweb.py, 1.2, 1.3 build.py, 1.1, 1.2 builder.py, 1.1, 1.2 changes.py, 1.1, 1.2 step.py, 1.1, 1.2 tests.py, 1.1, 1.2 waterfall.py, 1.6, 1.7
- Next message (by thread): [Buildbot-commits] buildbot/buildbot interfaces.py,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list