[Product-Developers] know folderish types

Héctor Velarde hector.velarde at gmail.com
Mon May 28 18:32:35 UTC 2012


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4939 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120528/d3ec8c0d/attachment.p7s>


More information about the Product-Developers mailing list