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.file-1.8.1/ftw/file/setuphandlers.py   ftw.file(Download)
from Products.CMFCore.utils import getToolByName
from ftw.file.config import INDEXES
 
 
def add_indexes(context, logger):
    indexes = catalog.indexes()
 
    for name, meta_type in INDEXES:
        if name not in indexes:
            catalog.addIndex(name, meta_type)