Nicolas LAURANCE writes:
Here is my situation: 1-I have a collection of objects based on a Zclass (catalog aware) 2-I have a script to create new instances 3-One to modify existing instances 4-A script that update properties used by script 2 & 3. It manage_editPeoperties... And finishes with context.reindex_object()
Everything works fine, but... When I update an object I get it twice in the Catalog list , why ? That sounds strange. Do you work with virtual hosting?
In this case, you should replace "CatalogAware" by "CatalogPathAware". The catalog identifies an object by an ID. When the same object is twice in the catalog, this means that it got several different ids. Formerly, Zope used URLs as ID. However, in a virtual host environment, the same object may have different URLs. Therefore, now the "physical path" is used as id. "CatalogAware" is not yet up to this new convention, "CatalogPathAware is. Dieter