Back to index

plone3  3.1.7
Namespaces | Functions
CMFPlone.migrations Namespace Reference

Namespaces

namespace  migration_util
namespace  v2_1
namespace  v2_5
namespace  v3_0
namespace  v3_1

Functions

def executeMigrations
def null
def registerMigrations

Function Documentation

Definition at line 3 of file __init__.py.

00003 
00004 def executeMigrations():
00005     import v2_1, v2_5, v3_0, v3_1

def CMFPlone.migrations.null (   portal)
This is a null migration, use it when nothing happens 

Definition at line 6 of file __init__.py.

00006 
00007 def null(portal):
00008     """ This is a null migration, use it when nothing happens """
00009     pass

Definition at line 10 of file __init__.py.

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

Here is the call graph for this function: