7 Apr
2003
7 Apr
'03
4:47 p.m.
Paul Winkler wrote at 2003-4-5 10:14 -0800:
On Sat, Apr 05, 2003 at 04:20:21PM +0300, Dragos Chirila wrote:
Anyway, I found another approach: I'm using 'setattr' and 'delattr' to add/delete properties at runtime, and it works
That's good to know. __getattr__ is already used extensively by acquisition and security machinery, and the one time i tried to wrap it, it was *not* fun. very mysterious and seemingly nonsensical errors.
It is not easy but workable. You find an example in my "References" product <http://www.dieter.handshake.de/pyprojects/zope> and description for what you must look for in the mailing list archives. Dieter