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

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/p/r/Products.TextIndexNG3-3.4.8/Products/TextIndexNG3/tests/testAdapters.py   Products.TextIndexNG3(Download)
    def test_indexableContent_plain(self):
        from Products.CMFCore.CatalogTool import IndexableObjectWrapper
        from Products.CMFDefault.Document import Document
 
        d = Document('foo', title='Foo', text_format='plain',
                     text='foo content')
        d.setLanguage('en')
        try:
            w = IndexableObjectWrapper(ob=d, catalog=None)
            w = IndexableObjectWrapper(ob=d, catalog=None)
        except TypeError:
            w = IndexableObjectWrapper({}, d) # BBB: for CMF < 2.2
        a = self._makeOne(w)
 
    def test_indexableContent_html(self):
        from Products.CMFCore.CatalogTool import IndexableObjectWrapper
        from Products.CMFDefault.Document import Document
 
        d = Document('foo', title='Foo', text_format='html',
                     text='foo content')
        d.setLanguage('en')
        try:
            w = IndexableObjectWrapper(ob=d, catalog=None)

src/p/r/Products.ProxyIndex-1.2.3/Products/ProxyIndex/ProxyIndex.py   Products.ProxyIndex(Download)
# object is already wrapped.
try:
    from Products.CMFCore.CatalogTool import IndexableObjectWrapper, ICatalogTool
    CMF_FOUND = 1    
except ImportError:

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_CatalogTool.py   Products.CMFCore(Download)
    def _getTargetClass(self):
        from Products.CMFCore.CatalogTool import IndexableObjectWrapper
 
        return IndexableObjectWrapper
 

src/b/a/babble.client-2.0/src/babble/client/tests/test_index.py   babble.client(Download)
    def _getTargetClass(self):
        from Products.CMFCore.CatalogTool import IndexableObjectWrapper
 
        return IndexableObjectWrapper