Mercurial > bitten > bitten-test
diff bitten/web_ui.py @ 875:a68027e2245d
Add 'Platform' name to build report for web display and notifications. Fixes #541 and #633.
author | osimons |
---|---|
date | Thu, 21 Oct 2010 08:41:16 +0000 |
parents | e695efec5b28 |
children | dfbf2f857a50 |
line wrap: on
line diff
--- a/bitten/web_ui.py +++ b/bitten/web_ui.py @@ -54,8 +54,10 @@ BuildStep.IN_PROGRESS: 'in progress'} def _get_build_data(env, req, build): + platform = TargetPlatform.fetch(env, build.platform) data = {'id': build.id, 'name': build.slave, 'rev': build.rev, 'status': _status_label[build.status], + 'platform': getattr(platform, 'name', 'unknown'), 'cls': _status_label[build.status].replace(' ', '-'), 'href': req.href.build(build.config, build.id), 'chgset_href': req.href.changeset(build.rev)}