this is the code of listPortalTypesWithInterfaces:

    def listPortalTypesWithInterfaces(self, ifaces):
        pt = getToolByName(self, 'portal_types')
        value = []
        for data in listTypes():
            klass = data['klass']
            for iface in ifaces:
                if iface.implementedBy(klass):
                    ti = pt.getTypeInfo(data['portal_type'])
                    if ti is not None:
                        value.append(ti)
        return value

I think you can easily implement something like that asking for the fti.klass of the content type.

ask Martin/David if they want to add something like that on Dexterity.

did you already signed the Plone core developer agreement? ;-)

best regards

Héctor Velarde


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to