Mercurial > hg > bts-webui
changeset 106:0912a5d4fee7 draft
bug_tags: clarify how the tag works
author | diegoe-guest |
---|---|
date | Thu, 16 Jul 2009 03:55:17 +0000 |
parents | 2e18b025931e |
children | d7ac22242050 |
files | bts_webui/amancay/templatetags/bug_tags.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bts_webui/amancay/templatetags/bug_tags.py +++ b/bts_webui/amancay/templatetags/bug_tags.py @@ -14,17 +14,16 @@ bug = context.get('bug_status') if bug is None: return None - + + # We have a constant list of tags, so we can easily find out which ones are + # set and which ones are not. active_tags = bug.tags.split(' ') - all_tags = [t for t in TAGS if t not in active_tags] # all_tags could be [''], let's check it's not if all_tags and all_tags[0] == '': all_tags = [] - print active_tags, all_tags - return { 'bug': bug, 'all_tags': all_tags,