RE: [Zope] Searching for and displaying properties
'jobname' is added as *metadata* to your catalog?
Not sure if using manage_addProperty () to add jobname is equivalent to adding it as *metadata* . <code> manage_addProperty('jobname', 'ABC12345', 'string') </code>
--On 24. Juni 2006 22:06:39 +0800 "Sinang, Danny" <D.Sinang@spi-bpo.com> wrote:
'jobname' is added as *metadata* to your catalog?
Not sure if using manage_addProperty () to add jobname is equivalent to adding it as *metadata* .
<code>
manage_addProperty('jobname', 'ABC12345', 'string')
</code>
This add a property to an object but it has nothing to do with adding *metadata* to a ZCatalog instance. Please read the ZCatalog chapter of the Zope Book 2.7 edition. It carefully explains what *metadata* in the ZCatalog context means. The short version: a Zcatalog search returns *proxy* objects and the attrs of the proxy object contain only the values of the original object where you have configured a metadata in the Zcatalog. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
participants (2)
-
Andreas Jung -
Sinang, Danny