Back to index

plone3  3.1.7
Namespaces | Variables
getAddableTypesInMenu.py File Reference

Go to the source code of this file.

Namespaces

namespace  getAddableTypesInMenu

Variables

string getAddableTypesInMenu.INTERFACE = "Products.CMFPlone.interfaces.ConstrainTypes.IConstrainTypes"
 Script (Python) "getAddableTypesInMenu" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=allowedTypes title=Return a list of the content type ftis filtered by getImmediatelyAddableTypes(), if available.
tuple getAddableTypesInMenu.itool = getToolByName(context, 'portal_interface')
tuple getAddableTypesInMenu.mtool = getToolByName(context, 'portal_membership')
 getAddableTypesInMenu.translate = context.translate
tuple getAddableTypesInMenu.plone_view = context.restrictedTraverse('@@plone')
tuple getAddableTypesInMenu.folder = plone_view.getCurrentFolder()
list getAddableTypesInMenu.result = [(translate(ctype.Title()), ctype) for ctype in allowedTypes]
tuple getAddableTypesInMenu.immediateIds = folder.getImmediatelyAddableTypes()