Did I find the right examples for you? yes no

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

src/p/r/Products.PloneGlossary-1.7/Products/PloneGlossary/patches.py   Products.PloneGlossary(Download)
 
from config import PATCH_ZCTextIndex, INDEX_SEARCH_GLOSSARY
from config import PLONEGLOSSARY_TOOL
 
from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
        if self.getId() in INDEX_SEARCH_GLOSSARY:
 
            gtool = getToolByName(self, PLONEGLOSSARY_TOOL)
            glossary_uids = gtool.getGeneralGlossaryUIDs()
            all_term_items = gtool._getGlossaryTermItems(glossary_uids)

src/p/r/Products.PloneGlossary-1.7/Products/PloneGlossary/utils.py   Products.PloneGlossary(Download)
def registerGlossary(context, glossary_class, logger=None):
    """Add an available glossary class"""
 
    pgtool = getToolByName(context, config.PLONEGLOSSARY_TOOL)
    registered_metatypes = pgtool.available_glossary_metatypes