Ticket #145 (closed enhancement: fixed)
Patch: split OneLineMixin.make_line
| Reported by: | amax_snaplogic | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.10 |
| Version: | 0.7.6 | Keywords: | |
| Cc: |
Description
Hi,
This patch refactors OneLineMixin?.make_line(), splitting in into two methods: one that gathers all the data needed for a build (get_line_values), and one that takes that data, and renders it into an HTML line (make_line).
The win here is that someone can customize the HTML display of a report more easily by subclassing OneLineMixin? (or more likely, one of its subclasses) and overridding make_line(). One could before, of course, but now they can reuse the data-gathering code by calling get_line_values().
Attachments
Change History
Changed 6 years ago by amax_snaplogic
-
attachment
OneLineMixin.make_line.patch
added
comment:2 Changed 4 years ago by dustin
- Status changed from new to closed
- Resolution set to fixed
- Milestone changed from 0.8.0 to 0.7.10
commit 1f3b1dcb7b0572151bfc03bb2e7856003913046d
Author: dustin <dustin@v.igoro.us>
Date: Fri Apr 4 08:25:51 2008 +0100
#145:OneLineMixin.make_line.patch
Patch from Aaron Maxwell <amax@snaplogic.org>. Refactor
OneLineMixin.make_line(), splitting in into two methods: one that
gathers all the data needed for a build (get_line_values), and one
that takes that data, and renders it into an HTML line (make_line).
Note: See
TracTickets for help on using
tickets.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Patch to split OneLineMixin?.make_line