Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 from Products.CMFPlone.MigrationTool import registerUpgradePath
00002 
00003 def executeMigrations():
00004     import v2_1, v2_5, v3_0, v3_1
00005 
00006 def null(portal):
00007     """ This is a null migration, use it when nothing happens """
00008     pass
00009 
00010 def registerMigrations():
00011     # So the basic concepts is you put a bunch of migrations in here.
00012 
00013     # If False is specified as the actual migration function, this means
00014     # this upgrade path is not available anymore.
00015 
00016     # Plone 1.0
00017 
00018     registerUpgradePath('1.0', '1.0.1', False)
00019     registerUpgradePath('1.0.1', '1.0.2', False)
00020     registerUpgradePath('1.0.2', '1.0.3', False)
00021     registerUpgradePath('1.0.3', '1.0.4', False)
00022     registerUpgradePath('1.0.4', '1.0.5', False)
00023 
00024     # Plone 2.0
00025 
00026     registerUpgradePath('1.0.5', '2.0-beta2', False)
00027     registerUpgradePath('2.0-beta2', '2.0-beta3', False)
00028     registerUpgradePath('2.0-beta3', '2.0-rc2', False)
00029     registerUpgradePath('2.0-rc2', '2.0-rc3', False)
00030     registerUpgradePath('2.0-rc3', '2.0-rc4', False)
00031     registerUpgradePath('2.0-rc4', '2.0-rc5', False)
00032     registerUpgradePath('2.0-rc5', '2.0', False)
00033     registerUpgradePath('2.0', '2.0-rc6', False)
00034     registerUpgradePath('2.0-rc6', '2.0-final', False)
00035 
00036     # Plone 2.0.x
00037 
00038     registerUpgradePath('2.0-final', '2.0.1', False)
00039     registerUpgradePath('2.0.1', '2.0.2', False)
00040     registerUpgradePath('2.0.2', '2.0.3', False)
00041     registerUpgradePath('2.0.3', '2.0.4', False)
00042     registerUpgradePath('2.0.4', '2.0.5-rc1', False)
00043     registerUpgradePath('2.0.5-rc1', '2.0.5-rc2', False)
00044     registerUpgradePath('2.0.5-rc2', '2.0.5', False)
00045 
00046     # Plone 2.1
00047 
00048     registerUpgradePath('2.0.5', '2.1-alpha1', False)
00049     registerUpgradePath('2.1-alpha1', '2.1-alpha2', False)
00050     registerUpgradePath('2.1-alpha2', '2.1-beta1', False)
00051     registerUpgradePath('2.1-beta1', '2.1-beta2', False)
00052     registerUpgradePath('2.1-beta2', '2.1-rc1', False)
00053     registerUpgradePath('2.1-rc1', '2.1-rc2', False)
00054     registerUpgradePath('2.1-rc2', '2.1-rc3', False)
00055     registerUpgradePath('2.1-rc3', '2.1', False)
00056 
00057     # Currently supported migrations
00058 
00059     # Plone 2.1.x
00060 
00061     registerUpgradePath('2.1', '2.1.1', v2_1.final_two11.final_two11)
00062     registerUpgradePath('2.1.1', '2.1.2-rc1', v2_1.two11_two12.two11_two12rc1)
00063 
00064     registerUpgradePath('2.1.2-rc1', '2.1.2-rc2', null)
00065     registerUpgradePath('2.1.2-rc2', '2.1.2', v2_1.two11_two12.two12rc2_two12)
00066     registerUpgradePath('2.1.2', '2.1.3-rc1', v2_1.two12_two13.two12_two13)
00067 
00068     registerUpgradePath('2.1.3-rc1', '2.1.3', null)
00069     registerUpgradePath('2.1.3', '2.1.4-rc1', null)
00070 
00071     registerUpgradePath('2.1.4-rc1', '2.1.4', null)
00072 
00073     # Plone 2.5
00074 
00075     registerUpgradePath('2.1.4', '2.5-alpha1', v2_5.alphas.two5_alpha1)
00076 
00077     registerUpgradePath('2.5-alpha1', '2.5-alpha2', v2_5.alphas.alpha1_alpha2)
00078     registerUpgradePath('2.5-alpha2', '2.5-beta1', v2_5.betas.alpha2_beta1)
00079 
00080     registerUpgradePath('2.5-beta1', '2.5-beta2', v2_5.betas.beta1_beta2)
00081     registerUpgradePath('2.5-beta2', '2.5-rc1', v2_5.rcs.beta2_rc1)
00082 
00083     registerUpgradePath('2.5-rc1', '2.5-rc2', null)
00084     registerUpgradePath('2.5-rc2', '2.5-rc3', null)
00085     registerUpgradePath('2.5-rc3', '2.5', null)
00086 
00087     # Plone 2.5.x
00088 
00089     registerUpgradePath('2.5', '2.5.1-rc1', v2_5.final_two51.final_two51)
00090     
00091     registerUpgradePath('2.5.1-rc1', '2.5.1', v2_5.final_two51.final_two51)
00092     registerUpgradePath('2.5.1', '2.5.2-rc1', v2_5.two51_two52.two51_two52)
00093 
00094     registerUpgradePath('2.5.2-rc1', '2.5.2', null)
00095     registerUpgradePath('2.5.2', '2.5.3-rc1', v2_5.two52_two53.two52_two53)
00096 
00097     registerUpgradePath('2.5.3-rc1', '2.5.3-final', null)
00098 
00099     registerUpgradePath('2.5.3-final', '2.5.4-final',
00100                         v2_5.two53_two54.two53_two54)
00101     registerUpgradePath('2.5.4-final', '2.5.4-2', null)
00102     registerUpgradePath('2.5.4-2', '2.5.5', null)
00103 
00104     # Plone 3.0
00105 
00106     registerUpgradePath('2.5.5', '3.0-alpha1', v3_0.alphas.three0_alpha1)
00107 
00108     registerUpgradePath('3.0-alpha1', '3.0-alpha2', v3_0.alphas.alpha1_alpha2)
00109     registerUpgradePath('3.0-alpha2', '3.0-beta1', v3_0.alphas.alpha2_beta1)
00110 
00111     registerUpgradePath('3.0-beta1', '3.0-beta2', v3_0.betas.beta1_beta2)
00112     registerUpgradePath('3.0-beta2', '3.0-beta3', v3_0.betas.beta2_beta3)
00113     registerUpgradePath('3.0-beta3', '3.0-rc1', v3_0.betas.beta3_rc1)
00114 
00115     registerUpgradePath('3.0-rc1', '3.0-rc2', v3_0.rcs.rc1_rc2)
00116     registerUpgradePath('3.0-rc2', '3.0', v3_0.rcs.rc2_final)
00117 
00118     # Plone 3.0.x
00119 
00120     registerUpgradePath('3.0', '3.0.1', v3_0.final_three0x.final_three01)
00121     registerUpgradePath('3.0.1', '3.0.2', v3_0.final_three0x.three01_three02)
00122     registerUpgradePath('3.0.2', '3.0.3', null)
00123     registerUpgradePath('3.0.3', '3.0.4', v3_0.final_three0x.three03_three04)
00124     registerUpgradePath('3.0.4', '3.0.5', v3_0.final_three0x.three04_three05)
00125     registerUpgradePath('3.0.5', '3.0.6', null)
00126 
00127     # Plone 3.1
00128     registerUpgradePath('3.0.6', '3.1-beta1', v3_1.betas.three0_beta1)
00129     registerUpgradePath('3.1-beta1', '3.1-rc1', null)
00130     registerUpgradePath('3.1-rc1', '3.1', null)
00131 
00132     # Plone 3.1.x
00133     registerUpgradePath('3.1', '3.1.1', null)
00134     registerUpgradePath('3.1.1', '3.1.2', v3_1.final_three1x.three11_three12)
00135     registerUpgradePath('3.1.2', '3.1.3', null)
00136     registerUpgradePath('3.1.3', '3.1.4', null)
00137     registerUpgradePath('3.1.4', '3.1.5', v3_1.final_three1x.three14_three15)
00138     registerUpgradePath('3.1.5', '3.1.5.1', null)
00139     registerUpgradePath('3.1.5.1', '3.1.6', null)
00140     registerUpgradePath('3.1.6', '3.1.7', null)
00141