[Zope] ZCataloging objects added by batch within a Product
Dieter Maurer
dieter at handshake.de
Fri Sep 26 14:15:35 EDT 2003
David Little wrote at 2003-9-26 16:17 +0100:
> 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.
Apparently, the initial cataloging happens too early (before "surname"
is defined).
The intial cataloging is performed in "_setObject".
When you change something later, you have to call "index_object" again.
Dieter
More information about the Zope
mailing list