Пример #1
0
def fixKupuSupport(setuptool):
    """Don't decorate Kupu specific areas
    """
    new_tags = set(['div#kupu-editor-text-config-escaped',
                    'div#kupu-editor-text-config'])
    pgtool = getSite()[PLONEGLOSSARY_TOOL]
    not_highlighted_tags = set(pgtool.getProperty('not_highlighted_tags'))
    if not new_tags <= not_highlighted_tags:
        not_highlighted_tags |= new_tags
        not_highlighted_tags = tuple(not_highlighted_tags)
        pgtool.manage_changeProperties(
            not_highlighted_tags=not_highlighted_tags)
    return
Пример #2
0
def fixKupuSupport(setuptool):
    """Don't decorate Kupu specific areas
    """
    new_tags = set(
        ['div#kupu-editor-text-config-escaped', 'div#kupu-editor-text-config'])
    pgtool = getSite()[PLONEGLOSSARY_TOOL]
    not_highlighted_tags = set(pgtool.getProperty('not_highlighted_tags'))
    if not new_tags <= not_highlighted_tags:
        not_highlighted_tags |= new_tags
        not_highlighted_tags = tuple(not_highlighted_tags)
        pgtool.manage_changeProperties(
            not_highlighted_tags=not_highlighted_tags)
    return
Пример #3
0
def findGlossaryBrains():
    portal = getSite()
    glossary_tool = getToolByName(portal, 'portal_glossary')
    glossary_metatypes = glossary_tool.getProperty('glossary_metatypes')
    catalog = getToolByName(portal, 'portal_catalog')
    return catalog.searchResults(meta_type=glossary_metatypes)
Пример #4
0
def findGlossaryBrains():
    portal = getSite()
    glossary_tool = getToolByName(portal, 'portal_glossary')
    glossary_metatypes = glossary_tool.getProperty('glossary_metatypes')
    catalog = getToolByName(portal, 'portal_catalog')
    return catalog.searchResults(meta_type=glossary_metatypes)