~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mail/sendmail.py

  • Committer: William Grant
  • Date: 2011-09-18 07:22:34 UTC
  • mto: (13970.10.9 ztm-murder)
  • mto: This revision was merged to the branch mainline in revision 13983.
  • Revision ID: william.grant@canonical.com-20110918072234-oc781358zr34ozd5
Since sendmail is isZopeless' only callsite, use the check directly there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
from zope.sendmail.interfaces import IMailDelivery
52
52
 
53
53
from canonical.config import config
54
 
from canonical.lp import isZopeless
 
54
from canonical.database.sqlbase import ZopelessTransactionManager
55
55
from lp.app import versioninfo
56
56
from lp.services.encoding import is_ascii_only
57
57
from lp.services.mail.stub import TestMailer
422
422
 
423
423
    raw_message = message.as_string()
424
424
    message_detail = message['Subject']
425
 
    if isZopeless():
 
425
    if ZopelessTransactionManager._installed is not None:
426
426
        # Zopeless email sending is not unit tested, and won't be.
427
427
        # The zopeless specific stuff is pretty simple though so this
428
428
        # should be fine.