[Blends-commit] [SCM] website branch, master, updated. dcde7fee7d0001eda0268b3320225f8674c1bb0d
Andreas Tille
tille at debian.org
Fri Jul 26 12:26:25 UTC 2013
The following commit has been merged in the master branch:
commit dcde7fee7d0001eda0268b3320225f8674c1bb0d
Author: Andreas Tille <tille at debian.org>
Date: Fri Jul 26 14:29:48 2013 +0200
weightedclass for all possible numbers of errors
diff --git a/webtools/bugs_udd.py b/webtools/bugs_udd.py
index a099c91..49ea231 100755
--- a/webtools/bugs_udd.py
+++ b/webtools/bugs_udd.py
@@ -302,8 +302,24 @@ the right shows the tasks of %s.""" ) \
for task in bugs_data:
if bugs_data[task]['weighttask'] < data['assessments'][0][0]:
- bugs_data[task]['weightedsev'] = _('Metapackage is in excellent shape')
+ bugs_data[task]['weightedsev'] = _('Task is in excellent shape')
bugs_data[task]['weightedclass'] = data['assessments'][0][1]
+ elif bugs_data[task]['weighttask'] < data['assessments'][1][0]:
+ bugs_data[task]['weightedsev'] = _('Task is in very good shape')
+ bugs_data[task]['weightedclass'] = data['assessments'][1][1]
+ elif bugs_data[task]['weighttask'] < data['assessments'][2][0]:
+ bugs_data[task]['weightedsev'] = _('Task is in good shape')
+ bugs_data[task]['weightedclass'] = data['assessments'][2][1]
+ elif bugs_data[task]['weighttask'] < data['assessments'][3][0]:
+ bugs_data[task]['weightedsev'] = _('Consider looking into bugs of this task')
+ bugs_data[task]['weightedclass'] = data['assessments'][3][1]
+ elif bugs_data[task]['weighttask'] < data['assessments'][4][0]:
+ bugs_data[task]['weightedsev'] = _('Looking into bugs of this task is recommended')
+ bugs_data[task]['weightedclass'] = data['assessments'][4][1]
+ else:
+ bugs_data[task]['weightedsev'] = _('Immediately looking into bugs of the dependencies of this task is advised')
+ bugs_data[task]['weightedclass'] = data['assessments'][5][1]
+ bugs_data[task]['weightedsev'] = ' (%i)' % bugs_data[task]['weighttask']
# Debuging output in JSON file
f = open(blendname+'_bugs.json', 'w')
diff --git a/webtools/templates/bugs_udd.xhtml b/webtools/templates/bugs_udd.xhtml
index 6168dd2..2a14f5e 100644
--- a/webtools/templates/bugs_udd.xhtml
+++ b/webtools/templates/bugs_udd.xhtml
@@ -52,7 +52,7 @@
<div py:choose="t">
<span py:when="task"
class="curlink"><a href="${t}.html">${t.capitalize()}</a> ${bugs_data[t]['nopenbugs']} (${bugs_data[t]['weighttask']})</span>
- <span py:otherwise="" class="link ${bugs_data[t]['weightedclass']}"><a href="${t}.html">${t.capitalize()}</a> ${nbugs[t]} (${bugs_data[t]['weighttask']})</span>
+ <span py:otherwise="" class="link ${bugs_data[t]['weightedclass']}"><a href="${t}.html">${t.capitalize()}</a> ${bugs_data[t]['nopenbugs']} (${bugs_data[t]['weighttask']})</span>
</div>
</py:for>
</div>
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list