Re: [Zope-dev] Re: [Zope-CMF] How to get Type in manage_afterAdd?

2002-02-01 Thread Dieter Maurer
Florent Guillaume writes: Anyway I'd propose the following: we need, in constructInstance, to somehow pass the portal_type to the object constructor. Unfortunately this has to be backwards-compatible with all the constructors out there that don't know about it. I see two possible ugly

[Zope-dev] Re: [Zope-CMF] How to get Type in manage_afterAdd?

2002-01-31 Thread Florent Guillaume
[sent to zope-dev] This problem is due to a deep bug in the current implementation of the Types Tool: a created object has no way to know its portal_type during construction (the constructor doesn't have this information, thus nor __init__ nor the hooks like manage_afterAdd can have it). I

Re: [Zope-dev] Re: [Zope-CMF] How to get Type in manage_afterAdd?

2002-01-31 Thread Florent Guillaume
Hmmm, probably I should have used the term factory instead of constructor in that last mail... Florent Florent Guillaume [EMAIL PROTECTED] wrote: [sent to zope-dev] This problem is due to a deep bug in the current implementation of the Types Tool: a created object has no way to know its