[Zope] ZCataloging objects added by batch within a Product

David Little david_little at blueyonder.co.uk
Fri Sep 26 11:17:26 EDT 2003


Hi,

I have a Product class ( OrderedFolder, PropertyManager ) which adds a
zCatalog(id = 'Catalog' ) when it is created. 

A batch process uploads a file which contains the data to add objects of
class tPatient( CatalogAware, OrderedFolder, PropertyManager ).

Catalog has a fieldIndex on 'surname'. 

After the upload the patients appear in the Catalog but the
ZSearchInterface form will not return any results. Search on null input
produces all the tPatients.

If I edit a tPatient instance, the search interface will then return the
correct patient thru the SearchInterface form.

The tPatient.editPatient method calls self.reindex_object().

Have tried deleting and creating Catalog by hand and looking at
ZCatalog.py to no avail.

David




More information about the Zope mailing list