Back to index

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

Functions

def two52_two53
def addMissingMimeTypes

Function Documentation

add mime types that weren't included with the MimetypesRegistry that
    shipped with Plone 2.5.2 and are now required (#6695)

Definition at line 13 of file two52_two53.py.

00013 
00014 def addMissingMimeTypes(portal, out):
00015     """ add mime types that weren't included with the MimetypesRegistry that
00016         shipped with Plone 2.5.2 and are now required (#6695)
00017     """
00018     # manage_addMimeType handles existing types gracefully, so we can just go
00019     # ahead and add them without testing for existing ones
00020     portal.mimetypes_registry.manage_addMimeType('text/x-web-markdown', \
00021         ['text/x-web-markdown'], ['markdown'], 'text.png')
00022     portal.mimetypes_registry.manage_addMimeType('text/x-web-textile', \
00023         ['text/x-web-textile'], ['textile'], 'text.png')
00024     out.append("Added `text/x-web-markdown` and `text/x-web-textile`.")

Here is the caller graph for this function:

2.5.2 -> 2.5.3

Definition at line 4 of file two52_two53.py.

00004 
00005 def two52_two53(portal):
00006     """2.5.2 -> 2.5.3
00007     """
00008     out = []
00009     addMissingMimeTypes(portal, out)
00010 
00011     return out
00012 

Here is the call graph for this function: