~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/mail/newbug.py

  • Committer: Curtis Hovey
  • Date: 2011-08-12 14:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 13685.
  • Revision ID: curtis.hovey@canonical.com-20110812143951-74vfvrt37gtt4fz2
Sorted imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    'generate_bug_add_email',
9
9
    ]
10
10
 
 
11
from canonical.launchpad.webapp.publisher import canonical_url
11
12
from lp.services.mail.mailwrapper import MailWrapper
12
 
from lp.services.webapp.publisher import canonical_url
13
13
 
14
14
 
15
15
def generate_bug_add_email(bug, new_recipients=False, reason=None,
62
62
 
63
63
    if new_recipients:
64
64
        if "assignee" in reason and event_creator is not None:
65
 
            if event_creator == bugtask.assignee:
66
 
                contents += (
67
 
                    "You have assigned this bug to yourself for %(target)s")
68
 
            else:
69
 
                contents += (
70
 
                    "%(assigner)s has assigned this bug to you for " +
71
 
                    "%(target)s")
 
65
            contents += (
 
66
                "%(assigner)s has assigned this bug to you for %(target)s")
72
67
            content_substitutions['assigner'] = (
73
68
                event_creator.unique_displayname)
74
69
            content_substitutions['target'] = bugtask.target.displayname