It should work as long as your object provides some interface that
provides IContentType. Dexterity does this automatically for
auto-generated schemas. If you're using your own schema in Python you
have to do alsoProvides(schema, IContentType) yourself.
On 5/16/14, 1:21 PM, Héctor Velarde wrote:
just curious why this fails, obj is a Dexterity based content type:
(Pdb) from zope.app.content import queryContentType
(Pdb) queryContentType(obj)
(Pdb) obj
<MyType at /Plone/test/foo>
comments?
_______________________________________________
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers
_______________________________________________
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers