[Zope-CMF] Working with CMF Event object properties

Phil Glaser StillSmallVoice@DirectvInternet.com
Tue, 17 Sep 2002 09:26:37 -0400


Hi Raphael,

This is very enlightening and enormously helpful.

I got my code working with getobject() as a short-term fix, but I'm guessing
that it's less expensive to get a property from the catalog rather than
having to get the ojbect reference, so I'll muck around with the catalog
when I have time.

Many thanks!!!

Regards,

Phil


>-----Original Message-----
>From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
>Of Raphael Ritz
>Sent: Tuesday, September 17, 2002 3:13 AM
>To: Phil Glaser
>Cc: zope-cmf@zope.org
>Subject: Re: [Zope-CMF] Working with CMF Event object properties
>
>
>Hi Phil,
>
>first you should realize that the catalog itself does not return the
>objects found (or object handlers) but rather a list of a specific
>kind of objects intrinsic to the catalog (sometimes refered to as
>"brains"). Think of these as effective references to the objects.
>The catalog tool has a few methods to work on 'brains'
>like 'getURL()' (and that's why this is working) but if you want
>to access particular attributes you can do either of the following:
>
>1. use 'getobject()' first to get a handler on the object from the brain
>
>OR
>2. include the attributes you are after into the catalog metadata
>(from ZMI -> catalog management -> Metadata tab)
>
>Hope this helps,
>
>  Raphael
>
>
>
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://lists.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests
>