On 7/16/09 10:32 AM, Giovanni Toffoli wrote:
Hi all,
I'm not able to find a clean way to get the class (the class object, not
only its name) implementing a portal_type.
In the past I followed a dirty approach, based on the portal_types tool
and relying on the assumptions that
- the name of the class was the same than the name of the portal type
- each class was defined in a separate module, with the same name than
the portal type, in the product registering the portal type.
I suppose that a more general method is available. Could somebody help me?
There is no good way to do that, since a portal type essentialy maps to
a function which generates an object. There is no direct portal type to
python class type relation.
Might I ask why you want to do this?
Wichert.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers