[Zope] zclass

Kevin Dangoor kid@kendermedia.com
Thu, 4 May 2000 10:42:55 -0400


Hi,

Make sure in your ZClass_add method (replace "ZClass" with the name of your
ZClass) that you are storing the values of the properties, and reindexing
the object. I'm assuming that since you say the ZClass is in the catalog
that you have CatalogAware as a base class.

Your _add method should have:

<dtml-with "createInObjectManager...">
<dtml-call "propertysheets.YourPropSheet.manage_editProperties(REQUEST)">
<dtml-call reindex_object>
</dtml-with>

Without the call to manage_editProperties (or manage_changeProperties) *and*
the call to reindex_object, the object will show up in the catalog, but none
of its property data will be there.

Kevin

----- Original Message -----
From: "Markus Hochreiter" <mh@pernau.at>
To: <zope@zope.org>
Sent: Thursday, May 04, 2000 10:17 AM
Subject: [Zope] zclass


> i have tried to add a zclass programmaticlly. my problem is now that the
> zclass is in the Catalog, but when i try to search i get no result! i have
> added all attributs to the meta table and all search criterias to the
index.