[Zope] Problems adding attribute to custom object

Dieter Maurer dieter@handshake.de
Thu, 2 May 2002 22:47:47 +0200


Jean-Francois.Doyon@CCRS.NRCan.gc.ca writes:
 > ...
 > Error Type: TypeError
 > Error Value: attribute-less object (assign or del)
 > 
 > I've treid using portal_catalog search results, and then something like :
 > setattr(a,'newporperty',''), but that gives me the error above. I also tried
 > o.property = '', but that didn't help ...
Usually, you cannot assign attributes in Python Scripts.

Use an External Method (or methods in your product) to do that.


Dieter