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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/o/p/opencore-listen-0.8.0/Products/listen/utilities/archive_search.py   opencore-listen(Download)
from Products.listen.interfaces import ISearchableArchive
from Products.listen.interfaces import ISearchableMessage
from Products.listen.lib.common import get_utility_for_context
 
class MailCatalog(ZCatalog):
def SearchableListMoved(ml, event):
    if not IObjectRemovedEvent.providedBy(event):
        # don't bother with this stuff on removal, it's pointless
        search = get_utility_for_context(ISearchableArchive, context=ml)
        # XXX: Assumes a ZCatalog based utility, we need to rebuild the whole

src/o/p/opencore-listen-0.8.0/Products/listen/content/mail_message.py   opencore-listen(Download)
from Products.listen.lib.browser_utils import encode, obfct
from Products.listen.content.mailboxer_tools import unpackMail
from Products.listen.lib.common import get_utility_for_context
 
_marker = []
    def __init__(self, context):
        self.context = context
        # This is called during message creation (e.g. from Application), so
        # context needs to be passed explicitly.
        self.search = get_utility_for_context(ISearchableArchive,

src/p/r/Products.listen-0.6.4/Products/listen/utilities/archive_search.py   Products.listen(Download)
from Products.listen.interfaces import ISearchableArchive
from Products.listen.interfaces import ISearchableMessage
from Products.listen.lib.common import get_utility_for_context
 
class MailCatalog(ZCatalog):
def SearchableListMoved(ml, event):
    if not IObjectRemovedEvent.providedBy(event):
        # don't bother with this stuff on removal, it's pointless
        search = get_utility_for_context(ISearchableArchive, context=ml)
        # XXX: Assumes a ZCatalog based utility, we need to rebuild the whole

src/p/r/Products.listen-0.6.4/Products/listen/content/mail_message.py   Products.listen(Download)
from Products.listen.lib.browser_utils import encode, obfct
from Products.listen.content.mailboxer_tools import unpackMail
from Products.listen.lib.common import get_utility_for_context
 
_marker = []
    def __init__(self, context):
        self.context = context
        # This is called during message creation (e.g. from Application), so
        # context needs to be passed explicitly.
        self.search = get_utility_for_context(ISearchableArchive,