Back to index

plone3  3.1.7
Functions
CMFPlone.migrations.v2_5.rcs Namespace Reference

Functions

def beta2_rc1

Function Documentation

2.5-beta2 -> 2.5-rc1

Definition at line 7 of file rcs.py.

00007 
00008 def beta2_rc1(portal):
00009     """2.5-beta2 -> 2.5-rc1
00010     """
00011     out = []
00012 
00013     # Make the portal a Zope3 site
00014     enableZope3Site(portal, out)
00015 
00016     # register some tools as utilities
00017     registerToolsAsUtilities(portal, out)
00018 
00019     # add a property indicating if this is a big or small site, so the UI can
00020     # change depending on it
00021     propTool = getToolByName(portal, 'portal_properties', None)
00022     propSheet = getattr(propTool, 'site_properties', None)
00023     if not propSheet.hasProperty('many_users'):
00024         if propSheet.hasProperty('large_site'):
00025             out.append("Migrating 'large_site' to 'many_users' property.")
00026             default=propSheet.getProperty('large_site')
00027             propSheet.manage_delProperties(ids=['large_site'])
00028         else:
00029             default=0
00030         propSheet.manage_addProperty('many_users', default, 'boolean')
00031         out.append("Added 'many_users' property to site_properties.")
00032 

Here is the call graph for this function: