[Zope] assignment to form records
Tue, 04 Mar 2003 15:39:48 -0800
At 03:12 PM 3/4/2003, Fernando Martins wrote:
>I've a script who gets two parameters from a form: Code (int), Fields
Record? Haven't heard of *that* data type...
>Fields.a_field = 1
>I get the error:
> > Error Type: TypeError
> > Error Value: attribute-less object (assign or del)
That's because whatever it is you're passing in for the value of Fields
doesn't have the attribute you're attempting to assign to.
If Fields is a mapping (like REQUEST.form), you may want:
Fields['a_field'] = 1
If that's not it, could you provide a bit more info on what's getting
passed in for Fields?