~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/product.py

  • Committer: Curtis Hovey
  • Date: 2011-12-23 22:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 14599.
  • Revision ID: curtis.hovey@canonical.com-20111223222740-raqsmmtgj8hfpxhx
Move mail helpers to lp.services.mail.helpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
from canonical.config import config
82
82
from canonical.launchpad import (
83
83
    _,
84
 
    helpers,
85
84
    )
86
85
from canonical.launchpad.webapp import (
87
86
    ApplicationMenu,
199
198
    PublicPersonChoice,
200
199
    )
201
200
from lp.services.librarian.interfaces import ILibraryFileAliasSet
 
201
from lp.services.mail.helpers import get_email_template
202
202
from lp.services.mail.sendmail import (
203
203
    format_address,
204
204
    simple_sendmail,
205
205
    )
206
206
from lp.services.propertycache import cachedproperty
207
207
from lp.services.worlddata.interfaces.country import ICountry
 
208
from canonical.launchpad.helpers import browserLanguages
208
209
from lp.translations.browser.customlanguagecode import (
209
210
    HasCustomLanguageCodesTraversalMixin,
210
211
    )
347
348
        subject = (
348
349
            "License information for %(product_name)s "
349
350
            "in Launchpad" % substitutions)
350
 
        template = helpers.get_email_template(
 
351
        template = get_email_template(
351
352
            'product-other-license.txt', app='registry')
352
353
        message = template % substitutions
353
354
        simple_sendmail(
1120
1121
        return ICountry(self.request, None)
1121
1122
 
1122
1123
    def browserLanguages(self):
1123
 
        return helpers.browserLanguages(self.request)
 
1124
        return browserLanguages(self.request)
1124
1125
 
1125
1126
    def getClosedBugsURL(self, series):
1126
1127
        status = [status.title for status in RESOLVED_BUGTASK_STATUSES]