RE: [Zope] Searching for and displaying properties
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.
Having read the Zope 2.7 ZCatalog chapter, I think I can say there's always been a metadata column called "jobname". So going back to my original question, is there a way for me not to have to mass-refresh my entire catalog just to be able to display my properties ? Regards, Danny
--On 24. Juni 2006 22:36:00 +0800 "Sinang, Danny" <D.Sinang@spi-bpo.com> wrote:
So going back to my original question, is there a way for me not to have to mass-refresh my entire catalog just to be able to display my properties ?
Click on "update catalog" in the Advanced tab or use the refreshCatalog() method of the ZCatalog (described in its interfaces.py file). -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
Sinang, Danny wrote:
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.
Having read the Zope 2.7 ZCatalog chapter, I think I can say there's always been a metadata column called "jobname".
Could be it looks like there is a metadata column 'jobname' but i reality you created a column with name 'jobname ' or ' jobname'. Hth, Michael -- http://zope.org/Members/d2m http://planetzope.org
participants (3)
-
Andreas Jung -
Michael Haubenwallner -
Sinang, Danny