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.contactauthor:uninstall')
        logger.info("Uninstall done")
def migrateTo2000(context):
    setup_tool = getToolByName(context, 'portal_setup')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'plone.app.registry')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'browserlayer')
    setup_tool.runImportStepFromProfile(PROFILE_ID, 'controlpanel')
    logger.info('Migrated to version 1.1')