~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/adapters/bugchange.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-18 07:25:31 UTC
  • mfrom: (13453.1.1 email-tag-order-645962)
  • Revision ID: launchpad@pqm.canonical.com-20110718072531-v6snlhkbonwn2nan
[r=wgrant][bug=645962] Changed order of tags added and removed
        notifications in emails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
594
594
        removed_tags = old_tags.difference(new_tags)
595
595
 
596
596
        messages = []
 
597
        if len(removed_tags) > 0:
 
598
            messages.append(
 
599
                "** Tags removed: %s" % " ".join(sorted(removed_tags)))
597
600
        if len(added_tags) > 0:
598
601
            messages.append(
599
602
                "** Tags added: %s" % " ".join(sorted(added_tags)))
600
 
        if len(removed_tags) > 0:
601
 
            messages.append(
602
 
                "** Tags removed: %s" % " ".join(sorted(removed_tags)))
603
603
 
604
604
        return {'text': "\n".join(messages)}
605
605