Пример #1
0
def installNewModifiers(context):
    modifiers = getToolByName(context, 'portal_modifier', None)
    if modifiers is not None:
        install(modifiers)
        logger.info('Added new CMFEditions modifiers.')
Пример #2
0
def installNewModifiers(context):
    from Products.CMFEditions.StandardModifiers import install
    modifiers = getToolByName(context, 'portal_modifier', None)
    if modifiers is not None:
        install(modifiers)
        logger.info('Added new CMFEditions modifiers.')
Пример #3
0
def installNewModifiers(portal, out):
    modifiers = getToolByName(portal, 'portal_modifier', None)
    if modifiers is not None:
        install(modifiers)
        out.append('Added new CMFEditions modifiers')
Пример #4
0
def installNewModifiers(context):
    from Products.CMFEditions.StandardModifiers import install
    modifiers = getToolByName(context, 'portal_modifier', None)
    if modifiers is not None:
        install(modifiers)
        logger.info('Added new CMFEditions modifiers.')
Пример #5
0
def installNewModifiers(context):
    modifiers = getToolByName(context, 'portal_modifier', None)
    if modifiers is not None:
        install(modifiers)
        logger.info('Added new CMFEditions modifiers.')