def v6(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.core.upgrades:v6') tool.refreshResources()
def v9(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.core.upgrades:v9')
def v2(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.core.upgrades:v2') catalog = api.portal.get_tool(name='portal_catalog') catalog.clearFindAndRebuild() reindex_relations(context)
def v5(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.widget:default') # add sortable_title column and reindex persons and organizations tool.addMetadata('sortable_title') tool.reindexContents(IContactContent, ('sortable_title',))
def v1101(context): """Upgrade to v1101""" tool = IUpgradeTool(context) tool.runProfile('collective.contentrules.comingsoon.upgrades:v1101')
def v5(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.widget:default') # add sortable_title column and reindex persons and organizations tool.addMetadata('sortable_title') tool.reindexContents(IContactContent, ('sortable_title', ))
def v2(context): tool = IUpgradeTool(context) tool.runProfile('collective.contact.facetednav.upgrades:v2')