[Zope] CatalogAware

Yapo Sébastien sebastien.yapo@free.fr
Fri Aug 29 15:31:39 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C36E4B.05B8B720
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi !

I use objects from a class which inherits from CatalogAware.
The objects index themselves into the ZCatalog but I get strange results =
when I try to search in this ZCatalog... The problem is solved after =
reindexing the object via the reindex_object() method but this works =
only for manage_edit ... I can't index my object properly in the =
manage_add method (I get the same problem)
Newly indexed objects seem to be added to the ZCatalog with the indexes =
from the previous cataloged object (or something like that)

Is there a bug I should be 'awared' to or am I doing something the wrong =
way ?

        SY

------=_NextPart_000_000F_01C36E4B.05B8B720
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi !</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I use&nbsp;objects from a class which =
inherits from=20
CatalogAware.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The objects index themselves into the =
ZCatalog but=20
I get strange results when I try to search in this ZCatalog... The =
problem is=20
solved after reindexing the object via the reindex_object() method but =
this=20
works only for manage_edit ... I can't index my object properly in the=20
manage_add method (I get the same problem)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Newly&nbsp;indexed objects seem to be =
added to the=20
ZCatalog with the indexes from the previous cataloged object (or =
something like=20
that)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there a bug I should be 'awared' to =
or am I=20
doing something the wrong way ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
SY</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C36E4B.05B8B720--





More information about the Zope mailing list