Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)
Returns the email address for an object or the object an email
email address

src/f/t/ftw.mail-2.1.0/ftw/mail/inbound.py   ftw.mail(Download)
from ftw.mail import exceptions
from ftw.mail import utils
from ftw.mail.interfaces import IEmailAddress
from ftw.mail.interfaces import IMailInbound
from ftw.mail.interfaces import IMailSettings
    def get_destination(self):
        emailaddress = IEmailAddress(self.request)
        destination = emailaddress.get_object_for_email(self.recipient())
 
        if destination is None:

src/f/t/ftw.mail-2.1.0/ftw/mail/mailin.py   ftw.mail(Download)
from Products.CMFCore.utils import getToolByName
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from ftw.mail.interfaces import IEmailAddress
from plone.app.content.browser.folderfactories import _allowedTypes
from plone.app.layout.viewlets import ViewletBase
    def email(self):
        email = IEmailAddress(self.request)
        return email.get_email_for_object(self.context)
 

src/f/t/ftw.mail-2.1.0/ftw/mail/emailaddress.py   ftw.mail(Download)
from ftw.mail.interfaces import IEmailAddress
from ftw.mail.interfaces import IMailSettings
from plone.app.uuid.utils import uuidToObject
from plone.registry.interfaces import IRegistry
from plone.uuid.interfaces import IUUID

src/f/t/ftw.mail-2.1.0/ftw/mail/tests/test_inbound.py   ftw.mail(Download)
# -*- coding: utf-8 -*-
from Products.CMFCore.utils import getToolByName
from ftw.builder import Builder
from ftw.builder import create
from ftw.mail.interfaces import IEmailAddress
        user.setMemberProperties(dict(email='from@example.org'))
 
        emailaddress = IEmailAddress(TestRequest())
        self.mail_to = emailaddress.get_email_for_object(self.folder)
 

src/f/t/ftw.mail-2.1.0/ftw/mail/tests/test_emailaddress.py   ftw.mail(Download)
from ftw.builder import Builder
from ftw.builder import create
from ftw.mail.emailaddress import UUIDEmailAddress
from ftw.mail.interfaces import IEmailAddress
from ftw.mail.testing import FTW_MAIL_FUNCTIONAL_TESTING
 
        self.request = TestRequest()
        self.emailaddress = IEmailAddress(self.request)
 
    def test_verify_adapter(self):