[Zope] Searching for and displaying properties

Andreas Jung lists at zopyx.com
Sat Jun 24 10:11:28 EDT 2006



--On 24. Juni 2006 22:06:39 +0800 "Sinang, Danny" <D.Sinang at 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 at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060624/30f80cc2/attachment.bin


More information about the Zope mailing list