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

All Samples(18)  |  Call(10)  |  Derive(0)  |  Import(8)

src/p/r/Products.listen-0.6.4/Products/listen/content/membership_handlers.py   Products.listen(Download)
 
from Products.listen.lib.common import check_pin
from Products.listen.lib.common import send_pending_posts
 
 
    def _send_pending_posts(self, email):
        post_list = self._get_post_pending_list()
        send_pending_posts(self.context, email, post_list)
 
    def add_allowed_sender(self, email):

src/o/p/opencore-listen-0.8.0/Products/listen/content/subscriptions.py   opencore-listen(Download)
from Products.listen.lib.common import lookup_emails
from Products.listen.lib.common import lookup_member_id
from Products.listen.lib.common import send_pending_posts
 
from Products.listen.interfaces import ISubscriptionList
        post_dict[p['body']] = p['header']
    posts = [dict(header=v, body=k) for k,v in post_dict.iteritems()]
    send_pending_posts(context, posts)
    post_mod_list.remove(email)
 

src/p/r/Products.listen-0.6.4/Products/listen/content/subscriptions.py   Products.listen(Download)
from Products.listen.lib.common import lookup_emails
from Products.listen.lib.common import lookup_member_id
from Products.listen.lib.common import send_pending_posts
 
from Products.listen.interfaces import ISubscriptionList
        post_dict[p['body']] = p['header']
    posts = [dict(header=v, body=k) for k,v in post_dict.iteritems()]
    send_pending_posts(context, posts)
    post_mod_list.remove(email)
 

src/o/p/opencore-listen-0.8.0/Products/listen/content/list_types.py   opencore-listen(Download)
from Products.listen.interfaces import IMembershipPendingList
from Products.listen.interfaces import IMembershipList
from Products.listen.lib.common import send_pending_posts
 
class BaseImportExport(object):
    def _add_post_hook(self, queue_name, email, mapping):
        if queue_name == 'pending_pmod_post':
            if self.mem_list.is_allowed_sender(email):
                send_pending_posts(self.context, [mapping])
            else:
    def _add_post_hook(self, queue_name, email, mapping):
        if queue_name == 'pending_pmod_post':
            if self.mem_list.is_allowed_sender(email):
                send_pending_posts(self.context, [mapping])
            else:

src/p/r/Products.listen-0.6.4/Products/listen/content/list_types.py   Products.listen(Download)
from Products.listen.interfaces import IMembershipPendingList
from Products.listen.interfaces import IMembershipList
from Products.listen.lib.common import send_pending_posts
 
class BaseImportExport(object):
    def _add_post_hook(self, queue_name, email, mapping):
        if queue_name == 'pending_pmod_post':
            if self.mem_list.is_allowed_sender(email):
                send_pending_posts(self.context, [mapping])
            else:
    def _add_post_hook(self, queue_name, email, mapping):
        if queue_name == 'pending_pmod_post':
            if self.mem_list.is_allowed_sender(email):
                send_pending_posts(self.context, [mapping])
            else:

src/o/p/opencore-listen-0.8.0/Products/listen/content/post_policies.py   opencore-listen(Download)
 
from Products.listen.lib.common import is_email
from Products.listen.lib.common import send_pending_posts
 
from persistent.list import PersistentList
                return MODERATION_FAILED
            if action == 'approve':
                send_pending_posts(self.context, [post])
            elif action == 'discard':
                pass

src/p/r/Products.listen-0.6.4/Products/listen/content/post_policies.py   Products.listen(Download)
 
from Products.listen.lib.common import is_email
from Products.listen.lib.common import send_pending_posts
 
from persistent.list import PersistentList
                return MODERATION_FAILED
            if action == 'approve':
                send_pending_posts(self.context, [post])
            elif action == 'discard':
                pass

src/o/p/opencore-listen-0.8.0/Products/listen/content/membership_handlers.py   opencore-listen(Download)
 
from Products.listen.lib.common import check_pin
from Products.listen.lib.common import send_pending_posts
 
class ConfirmationHandler(object):
                 for k,v in post_dict.iteritems()]
 
        send_pending_posts(self.context, posts)
 
    def add_allowed_sender(self, email):