Back to index

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

Functions

def rc1_rc2
def rc2_final
def addIntelligentText

Function Documentation

add intelligenttext mime type and transforms that have been
introduced in MimetypesRegistry and PortalTransforms 1.6 and that
are never updated anywhere (#6684)

Definition at line 27 of file rcs.py.

00027 
00028 def addIntelligentText(portal, out):
00029     """ add intelligenttext mime type and transforms that have been
00030     introduced in MimetypesRegistry and PortalTransforms 1.6 and that
00031     are never updated anywhere (#6684)
00032     """
00033     # Add mime type
00034     # See MimetypesRegistry/mime_types/mtr_mimetypes.py
00035     mt = text_web_intelligent
00036     if type(mt) != InstanceType:
00037         mt = mt()
00038     portal.mimetypes_registry.register(mt)
00039     out.append("Added text_web_intelligent mime type to registry")
00040 
00041     # Add transforms
00042     # See PortalTransforms/transforms/__init__.py
00043     engine = portal.portal_transforms
00044     engine.registerTransform(intel2html_register())
00045     out.append("Added intelligenttext to html transform to registry")
00046     engine.registerTransform(html2intel_register())
00047     out.append("Added html to intelligenttext transform to registry")

Here is the caller graph for this function:

3.0-rc1 -> 3.0-rc2

Definition at line 9 of file rcs.py.

00009 
00010 def rc1_rc2(portal):
00011     """ 3.0-rc1 -> 3.0-rc2
00012     """
00013 
00014     out = []
00015 
00016     addIntelligentText(portal, out)
00017 
00018     return out

Here is the call graph for this function:

Definition at line 19 of file rcs.py.

00019 
00020 def rc2_final(portal):
00021     
00022     out = []
00023     
00024     loadMigrationProfile(portal, 'profile-Products.CMFPlone.migrations:3.0rc2-3.0final')
00025     
00026     return out

Here is the call graph for this function: