[Zope-CMF] New product and meta_type and portal_catalog

Dieter Maurer dieter@handshake.de
Mon, 9 Dec 2002 19:32:28 +0100


Pascal Samuzeau writes:
 > ....
 >                                                                       
 > But, specially in this case, the problem appears, just because I've   
 > inherited of CMFCatalogAware, coming from SkinnedFolder. In an other  
 > product, I will have no problem. For 2 products I will have 2 ways of 
 > resolution. It just sounds me that the CMFCatalogAware's              
 > manage_afterAdd method is not in his right place. It must be outside  
 > of CMFCatalogAware.                                                   
I disagree.

When "CMFCatalogAware" wants that its instances are catalogued, it
must use the hooks provided for this case: "manage_afterAdd/beforeDelete".


Dieter