[Zope] Re: error with setattr
Fernando Martins
fmartins@hetnet.nl
Sun, 2 Mar 2003 20:49:56 +0100
Maik Jablonski wrote:
> > This was supposed to be just a simple test to see if I could
> (and how) to
> > add attributes to a record variable passed from a html form.
>
> Just a guess: Do you use PythonScripts? You can't define classes etc. in
> PythonScripts. You have to use ExternalMethods or Python-Products...
>
Yes, that's it. Thanks.
But it also seems I can't use setattr to add an attribute to a PythonScript
parameter (which comes from a form)??
I get the error:
Error Type: TypeError
Error Value: attribute-less object (assign or del)
What type of object is a PythonScript parameter? (or how can I test it for
myself without a type function?)
Fernando