Back to index

plone3  3.1.7
final_three0x.py
Go to the documentation of this file.
00001 from Products.CMFCore.utils import getToolByName
00002 from Products.CMFPlone.migrations.migration_util import loadMigrationProfile
00003 from Products.CMFEditions.StandardModifiers import install
00004 from Products.CMFPlone.migrations.v3_0.alphas import registerToolsAsUtilities
00005 
00006 
00007 def final_three01(portal):
00008     
00009     out = []
00010     
00011     loadMigrationProfile(portal, 'profile-Products.CMFPlone.migrations:3.0final-3.0.1')
00012     
00013     return out
00014 
00015 def three01_three02(portal):
00016     
00017     out = []
00018     
00019     loadMigrationProfile(portal, 'profile-Products.CMFPlone.migrations:3.0.1-3.0.2')
00020     
00021     return out
00022 
00023 def three03_three04(portal):
00024     
00025     out = []
00026     
00027     loadMigrationProfile(portal, 'profile-Products.CMFPlone.migrations:3.0.3-3.0.4')
00028     installNewModifiers(portal, out)
00029 
00030     return out
00031 
00032 
00033 def three04_three05(portal):
00034     
00035     out = []
00036     
00037     registerToolsAsUtilities(portal, out)
00038 
00039     return out
00040 
00041 
00042 def installNewModifiers(portal, out):
00043     modifiers = getToolByName(portal, 'portal_modifier', None)
00044     if modifiers is not None:
00045         install(modifiers)
00046         out.append('Added new CMFEditions modifiers')