Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/o/collective.taxonomy-1.2.3/src/collective/taxonomy/behavior.py   collective.taxonomy(Download)
 
from .i18n import MessageFactory as _
from .indexer import TaxonomyIndexer
 
logger = logging.getLogger("collective.taxonomy")
    def addIndex(self):
        context = getSite()
        sm = context.getSiteManager()
        sm.registerAdapter(
            TaxonomyIndexer(self.field_name, self.name),