Back to index

plone3  3.1.7
Functions
plone.app.kss.exportimport.setup Namespace Reference

Functions

def setupMimetype

Detailed Description

\
Procedural methods of site setup

Function Documentation

This setup step is needed after Archetypes has been installed.

Definition at line 7 of file setup.py.

00007 
00008 def setupMimetype(context):
00009     '''This setup step is needed after Archetypes has been installed.
00010     '''
00011     site = context.getSite()
00012     # Only run step if a flag file is present (e.g. not an extension profile)
00013     if context.readDataFile('plone-app-kss.txt') is None:
00014         return
00015     # register mimetype
00016     mt = getToolByName(site, 'mimetypes_registry')
00017     mt.manage_addMimeType('KSS (Kinetic Style Sheet)', ('text/kss', ), ('kss', ), 'text.png',
00018                        binary=0, globs=('*.kss', ))

Here is the call graph for this function: