[Zope] :records and value assignment in Python Script

Evan Simpson evan@4-am.com
Mon, 06 Aug 2001 10:12:07 -0400


Milos Prudek wrote:

> Struggling with the ":records" form construct...
[snip] 
> 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).

Cheers,

Evan @ 4-am & Zope