Back to index

plone3  3.1.7
getPortalTypes.py
Go to the documentation of this file.
00001 ## Script (Python) "getPortalTypes"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=
00008 ##title=Return a list of the content types installed in the portal
00009 
00010 from Products.CMFCore.utils import getToolByName
00011 
00012 portal_types_tool=getToolByName(context,'portal_types')
00013 installed_types=portal_types_tool.listContentTypes()
00014 
00015 return installed_types
00016