def alpha2_beta1(portal): """2.5-alpha2 -> 2.5-beta1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Add dragdropreorder.js to ResourceRegistries. addDragDropReorderJS(portal, out) # Add getEventTypes KeywordIndex to portal_catalog addGetEventTypeIndex(portal, out) # We need to migrate all existing actions to new-style actions first migrateOldActions(portal, out) # Fix 'home' portal action fixHomeAction(portal, out) # Fixup the navtree properties (this was already done in 2.1.3, but may # need to be done again for those migrating from alphas) normalizeNavtreeProperties(portal, out) return out
def final_two51(portal): """2.5-final -> 2.5.1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) removePloneCssFromRR(portal, out) # add event_registration.js addEventRegistrationJS(portal, out) # Repair plone_lexicon pipeline fixupPloneLexicon(portal, out) # We need to migrate all existing actions to new-style actions first migrateOldActions(portal, out) # Make object delete action use confirmation form fixObjDeleteAction(portal, out) # Required for #5569 (is_folderish needs reindexing) and #5231 (all text # indices need to be reindexed so they are split properly) migtool = getToolByName(portal, 'portal_migration') migtool._needRecatalog = True return out
def two12_two13(portal): """2.1.2 -> 2.1.3 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Put navtree properties in a sensible state normalizeNavtreeProperties(portal, out) # Remove vcXMLRPC.js from ResourceRegistries removeVcXMLRPC(portal, out) # Required due to a fix in PortalTransforms... migtool = getToolByName(portal, 'portal_migration') migtool._needRecatalog = True # add icons for copy, cut, paste and delete addActionDropDownMenuIcons(portal, out) return out
def two11_two12rc1(portal): """2.1.1 -> 2.1.2-rc1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Remove plone_3rdParty\CMFTopic from skin layers removeCMFTopicSkinLayer(portal, out) # We need to migrate all existing actions to new-style actions first migrateOldActions(portal, out) # Add rename object action addRenameObjectButton(portal, out) # add se-highlight.js (plone_3rdParty) to ResourceRegistries addSEHighLightJS(portal, out) # Don't let Discussion item have a workflow removeDiscussionItemWorkflow(portal, out) # Add new member data item addMemberData(portal, out) return out
def two51_two52(portal): """2.5.1 -> 2.5.2 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Make sure the cookie auth redirects to the correct location setLoginFormInCookieAuth(portal, out) return out
def two12rc2_two12(portal): """2.1.2-rc2 -> 2.1.2 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Reinstall PortalTransforms to activate the # configurable safe_html transformation. reinstallPortalTransforms(portal, out) return out
def beta1_beta2(portal): """2.5-beta1 - > 2.5-beta2 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # The migration done during the alpha screwed things up, so we do it again # and fix the mistake while we're at it installDeprecated(portal, out) removeBogusSkin(portal, out) # add a property indicating if this is a big or small site, so the UI can # change depending on it propTool = getToolByName(portal, 'portal_properties', None) propSheet = getattr(propTool, 'site_properties', None) if not propSheet.hasProperty('large_site'): propSheet.manage_addProperty('large_site', 0, 'boolean') out.append("Added 'large_site' property to site_properties.") # Remove vcXMLRPC.js from ResourceRegistries (this was already done in # 2.1.3, but may need to be done again for those migrating from alphas) removeVcXMLRPC(portal, out) # add icons for copy, cut, paste and delete addActionDropDownMenuIcons(portal, out) # add any appropriate plone skin layers to custom skins addPloneSkinLayers(portal, out) # Install portal_setup installPortalSetup(portal, out) # We need to migrate all existing actions to new-style actions first migrateOldActions(portal, out) # Simplify actions using the @@plone view simplifyActions(portal, out) # Use the @@plone view for the RTL.css expression entry migrateCSSRegExpression(portal, out) return out
def alpha1_alpha2(portal): """2.5-alpha1 -> 2.5-alpha2 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Install PlonePAS installPlonePAS(portal, out) # Install plone_deprecated skin installDeprecated(portal, out) return out
def two5_alpha1(portal): """2.1.2 -> 2.5-alpha1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # Install portal_setup installPortalSetup(portal, out) # Install CMFPlacefulWorkflow installPlacefulWorkflow(portal, out) return out
def final_two11(portal): """2.1-final -> 2.1.1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) try: fixUpSMIGlobs(portal, out) except TypeError: fixUpSMIGlobs(out) # Update path index for new EPI version reindexPathIndex(portal, out) return out
def beta2_rc1(portal): """2.5-beta2 -> 2.5-rc1 """ out = [] # Make the portal a Zope3 site enableZope3Site(portal, out) # register some tools as utilities registerToolsAsUtilities(portal, out) # add a property indicating if this is a big or small site, so the UI can # change depending on it propTool = getToolByName(portal, 'portal_properties', None) propSheet = getattr(propTool, 'site_properties', None) if not propSheet.hasProperty('many_users'): if propSheet.hasProperty('large_site'): out.append("Migrating 'large_site' to 'many_users' property.") default=propSheet.getProperty('large_site') propSheet.manage_delProperties(ids=['large_site']) else: default=0 propSheet.manage_addProperty('many_users', default, 'boolean') out.append("Added 'many_users' property to site_properties.")