On Fri, 12 Nov 1999, Jeff K. Hoffman wrote:
Hello, everyone.
So, my question is, is there any way for me to achieve this behavior without causing the problems above? I am thinking there must be a way to search the parents if AND ONLY IF it is for an incoming web request.
I'm in the middle of doing this too. I have found that it is better to append / delete from the _ namespace instead of overriding the __getattr__. This way, your meta-dictionary (_ namespace) can perform the right action. Also, it can ignore "writes" and hence avoid the addition problem. I'll post my code once I get it working correctly. BIG WARNING: don't make an attribute in your base class the same name as an exisiting one in the ZClass or you'll run into big problems. Cheers, Anthony Pfrunder