~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from zope.event import notify
19
19
from zope.interface import implements
20
20
 
21
 
from canonical.launchpad.helpers import get_email_template
22
 
from lp.services.mail.notification import (
23
 
    send_process_error_notification,
24
 
    )
25
 
from canonical.launchpad.webapp.interfaces import ILaunchBag
26
21
from lp.bugs.interfaces.bug import (
27
22
    CreateBugParams,
28
23
    CreatedBugWithNoBugTasksError,
33
28
    )
34
29
from lp.bugs.interfaces.bugmessage import IBugMessageSet
35
30
from lp.bugs.mail.commands import BugEmailCommands
36
 
from lp.services.mail.mailwrapper import MailWrapper
37
31
from lp.services.identity.interfaces.emailaddress import IEmailAddressSet
38
32
from lp.services.mail.helpers import (
39
33
    ensure_not_weakly_authenticated,
 
34
    get_email_template,
40
35
    get_error_message,
41
36
    get_main_body,
42
37
    guess_bugtask,
52
47
    IBugTaskEmailCommand,
53
48
    IMailHandler,
54
49
    )
 
50
from lp.services.mail.mailwrapper import MailWrapper
 
51
from lp.services.mail.notification import send_process_error_notification
55
52
from lp.services.mail.sendmail import simple_sendmail
56
53
from lp.services.messages.interfaces.message import IMessageSet
 
54
from lp.services.webapp.interfaces import ILaunchBag
57
55
 
58
56
 
59
57
error_templates = os.path.join(os.path.dirname(__file__), 'errortemplates')