Say I have an interface like this:
from zope.interface import Interface class IMyResource(Interface): """Marker interface"""
And now I create some dexterity types that implement this interface
from ..interfaces import IMyResource from plone.dexterity.content import Item from plone.supermodel import model from zope.interface import implementer class IResourceA(model.Schema): """My schema for resource A""" @implementer(IResourceA, IMyResource) class ResourceA(Item): """My resource A""" class IResourceB(model.Schema): """My schema for resource B""" @implementer(IResourceB, IMyResource) class ResourceB(Item): """My resource B"""
ResourceB are registered with a corresponding type definition in
profiles/default/types/ResourceX.xml and are addable within Plone.
Is there a way to enumerate all classes which implement the
The background is that I want to create a dynamic vocabulary which lists all the types that implement a given interface and there I need access to their
portal_type, their name/title and maybe also to their description.
Hope you guys can help me. Thanks!