Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.migrations.v2_5.two53_two54 Namespace Reference

Functions

def two53_two54
def addGSSteps

Variables

string PROF_ID = 'Products.CMFPlone:plone'

Function Documentation

Add import export steps in GS 

Definition at line 14 of file two53_two54.py.

00014 
00015 def addGSSteps(portal, out):
00016     """ Add import export steps in GS """
00017     setup_tool = getToolByName(portal, 'portal_setup', None)
00018     if setup_tool is not None:
00019         # only rerun when unset
00020         if not setup_tool.getBaselineContextID():
00021             # make sure the profile is there
00022             if PROF_ID in [i['id'] for i in setup_tool.listProfileInfo()]:
00023                 setup_tool.setBaselineContext('profile-' + PROF_ID)
00024     out.append('Set plone GS profile as default')

Here is the call graph for this function:

Here is the caller graph for this function:

2.5.3 -> 2.5.4

Definition at line 5 of file two53_two54.py.

00005 
00006 def two53_two54(portal):
00007     """2.5.3 -> 2.5.4
00008     """
00009     out = []
00010     addGSSteps(portal, out)
00011 
00012     return out
00013 

Here is the call graph for this function:


Variable Documentation

string CMFPlone.migrations.v2_5.two53_two54.PROF_ID = 'Products.CMFPlone:plone'

Definition at line 3 of file two53_two54.py.