Gilles Lenfant wrote me this: *Hi,
The Archetypes tool provides what you need if I understand correctly. from dontremember.interfaces import IFolderish from Products.CMFCore.utils import getToolByName at_tool = getToolByName(context, 'archetype_tool')* * folderishes = at_tool.* *listPortalTypesWithInterfaces(**[IFolderish]) IIRC the returned value (folderishes) is a list of fti objects from which you can get the portal type. This should work - untested - on non AT based types too (plone.app.content or dexterity) since this uses the portal_types factory and no AT specific stuff. HTH* * * This is good to know. In my opinion it would be great if dexterity can provide something like this. Best.
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
