[Zope-CMF] bug (or feature) with Type() field in catalog for newly created CMF objects
Joseph Wayne Norton
norton@alum.mit.edu
Tue, 11 Sep 2001 18:10:31 +0900
I ran across a bug when creating CMF objects in a batch mode (simply
calling the invoke_Factory method and not performing any web-based
editing). The initial value for the Type field in the catalog is set
to the python class's meta-id instead of the real 'Type' value. If
the CMF object is modified or the catalog updated, the correct value
for Type is shown.
I believe the problem is because the manage_afterAdd hook to perform
catalog indexing is called BEFORE the proper type is set in the types
tool's constructInstance method.
Is this a bug, feature, or implementation side-effect?
thanks,
- joe n.