[Zope] assignment to form records

Dieter Maurer dieter@handshake.de
Sat, 8 Mar 2003 13:14:12 +0100


Fernando Martins wrote at 2003-3-7 00:04 +0100:
 > ObjFields = Products.PythonScripts.standard.Object()
 > ObjFields = Fields
 > ObjFields.a_field = 10
 > 
 > and I got the same error:
 > 
 > > Error Type: TypeError
 > > Error Value: attribute-less object (assign or del)

Sure, as you still work with the same object...

  After "ObjFields = Fields", "ObjFields contains "Fields" and
  no longer the newly created "Object()".


Dieter