[Zope] :records and value assignment in Python Script

Ron Bickers rbickers-dated-997715186.40e668@logicetc.com
Mon, 6 Aug 2001 11:06:25 -0400


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf
> Of Evan Simpson

> Milos Prudek wrote:

> > But how can I change the value? I tried this inside Python Script:

> You can enable writing of record attributes by adding this line to the
> "record" class in $ZOPE/lib/python/ZPublisher/HTTPRequest.py:
>
>    _guarded_writes = 1
>
> (make sure it's indented the same as the body of the class).

Is there a reason this isn't the default?  I ran into the same problem where
I had a fairly large list of records.  I ended up having to copy the whole
thing just to change a few elements.
_______________________

Ron Bickers
Logic Etc, Inc.