Esempio n. 1
0
def uninstall(portal, reinstall=False):
    if not reinstall:
        # Don't want to delete all registry values if a Manager simply reinstall the product from ZMI
        setup_tool = portal.portal_setup
        setup_tool.runAllImportStepsFromProfile(
            'profile-collective.limitfilesizepanel:uninstall')
        logger.info("Uninstall done")
def uninstall(portal, reinstall=False):
    if not reinstall:
        # Don't want to delete all registry values if a Manager simply
        # reinstall the product from ZMI
        setup_tool = portal.portal_setup
        setup_tool.runAllImportStepsFromProfile(
            'profile-collective.limitfilesizepanel:uninstall')
        logger.info("Uninstall done")
def migrateTo1000(context):
    setup_tool = getToolByName(context, 'portal_setup')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'plone.app.registry')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'rolemap')
    logger.info('Migrated to version 1.1.2')
def migrateTo1200(context):
    setup_tool = getToolByName(context, 'portal_setup')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'browserlayer')
    logger.info('Migrated to version 1200')
def migrateTo1000(context):
    setup_tool = getToolByName(context, 'portal_setup')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'plone.app.registry')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'rolemap')
    logger.info('Migrated to version 1.1.2')
def migrateTo1200(context):
    setup_tool = getToolByName(context, 'portal_setup')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'browserlayer')
    logger.info('Migrated to version 1200')