[Zope-dev] Catalog result brains not extendable

Evan Simpson evan@4-am.com
Mon, 30 Jul 2001 21:24:38 -0400


> "Jay, Dylan" wrote:
> > I'm trying to get some results from a catalog and add meta_data to
it.

In $ZOPE/lib/python/Shared/DC/ZRDB/Results.py find the "class r"
definition, and add one line to it, like this:

        class r(Record, Implicit, brains, zbrains):
            _guarded_writes = 1

Now you can assign to attributes of result records.

Cheers,

Evan @ 4-am & Zope