[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Zope] Problems adding attribute to custom object
Jean-Francois.Doyon@xxxxxxxxxxxxxxxx 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
_______________________________________________
Zope maillist - Zope@xxxxxxxx
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
This mailing list archive is a service of Copilotco.