[Zope] ZCatalog: Huge Problems recataloging an item -- BUG?

Timm Gebhart t.gebhart@meavista.de
Mon, 18 Nov 2002 13:34:01 +0100


Am Montag 18 November 2002 09:17 schrieb Timm Gebhart:
> Am Freitag 15 November 2002 21:00 schrieb Dieter Maurer:
> > Timm Gebhart writes:
> >  > I seem to have a problem with CatalogAware Classes and index_objec=
t:
> >  > Method code is as follows:
> >  > <html><body>
> >  > <dtml-call "REQUEST.set('active', 1)">
> >  > <dtml-with "content[pic]" only>
> >  >   <dtml-call "manage_changeProperties(REQUEST)">
> >  >   <dtml-call reindex_object>
> >  > ...
> >  > which is getting called from a form outside the management interfa=
ce
> >  > to update a catalogued item's properties.
> >  > But it does not!
> >  >
> >  > Though the object has now the new values, the ZCatalog entry is no=
t
> >  > updated, and the DTML method returns without showing any errors.
> >
> > You are sure that "content[pic]" is "CatalogAware"?
>
> yup. gets indexed when added, I only get these problems when reindexing=
=2E
> When I put some debugging output in the CatalogAware, ZCatalog and Cata=
log
> code, this showed me that everything is getting called correctly, with =
the
> correct Object to catalogue, at least as far as Catalog's catalogObject=
()
> method.
>
> > You are sure that your catalog has id "Catalog"?
>
> yup. Weeeell... actually is has id "catalog" but I changed this in the
> CatalogAware code, too. I already tried reverting these changes, but to=
 no
> avail.
> I also tried calling ZCatalog.catalog_object() directly, this already
> worked before, but still the object won't recatalogue.

Problem seems to have gone away after clearing Catalog and reindexing all=
=20
objects.
Could this be a bug?

Still puzzled but happy,
tmM

--=20
Nobody writes jokes in base 13.
=09=09=09=09Douglas Noel Adams +