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

All Samples(13)  |  Call(10)  |  Derive(0)  |  Import(3)

src/c/o/collective.groupspace.mail-1.0.1/collective/groupspace/mail/roles.py   collective.groupspace.mail(Download)
from plone.app.vocabularies.groups import GroupsSource
 
from collective.groupspace.mail import MAIL_MESSAGE_FACTORY as _
 
import logging
        pass
    else:
        return False, _(u"Your email address is invalid: %s" % str(from_email))
 
    host = obj.MailHost
        variables['to_email'] = info['email']
 
        mail_text = _('notification_email', default="""To: %(to_email)s
From: %(from_email)s
Errors-to: %(from_email)s
 
    if errors:
        return False, _(u"An error occurred while sending the email. %s" % ','.join(errors.keys()))
 
    return True, _(u"Notification emails sent.")

src/c/o/collective.groupspace.mail-1.0.1/collective/groupspace/mail/browser/mailview.py   collective.groupspace.mail(Download)
from Products.CMFCore.utils import getToolByName
 
from collective.groupspace.mail import MAIL_MESSAGE_FACTORY as _
 
from plone.app.vocabularies.users import UsersSource
 
            if not message:
                msg = _(u"Please fill in a message.")
                self.errors['message'] = msg
                proceed_to_send_mail = False
            if not send_to_members:
                msg = _(u"Select at least one recipient.")
                proceed_to_send_mail = False
            if not self.portal_registration.isValidEmail(send_from_address):
                msg = _(u"Please enter a valid email address.")
                self.errors['send_from_address'] = msg              
                proceed_to_send_mail = False
                    status_message.addStatusMessage(msg, type='error')
            else:
                msg = _(u"Please correct the indicated errors.")
                status_message.addStatusMessage(msg, type='error')
 

src/c/o/collective.groupspace.mail-1.0.1/collective/groupspace/mail/portlets/groupmailportlet.py   collective.groupspace.mail(Download)
from Products.CMFCore.utils import getToolByName
 
from collective.groupspace.mail import MAIL_MESSAGE_FACTORY as _
 
from Acquisition import aq_inner