Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(0) | Derive(0) | Import(1)
src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/setuphandler.py ftw.contentpage(Download)
from Products.CMFCore.utils import getToolByName from collective.geo.settings.interfaces import IGeoFeatureStyle from collective.geo.settings.interfaces import IGeoSettings from ftw.contentpage.config import INDEXES from plone.app.portlets.storage import PortletAssignmentMapping
# Specify the indexes you want, with ('index_name', 'index_type') indexables = [] for name, meta_type in INDEXES: if name not in indexes: catalog.addIndex(name, meta_type)
src/f/t/ftw.contentpage-1.6.5/ftw/contentpage/tests/test_contentlisting.py ftw.contentpage(Download)
def test_category_index(self): catalog = getToolByName(self.portal, 'portal_catalog') for name, meta_type in config.INDEXES: self.assertIn(name, catalog.indexes())