I've been using zope 2.2.2 with a plugable brain that does something like this: class Mybrain: def __init__(self): self.__dict['myvar'] = 'xyzzy' I just moved to the latest 2.3 beta and get an error that "__dict__" doesn't exist. Anyone have a quick pointer for a fix, I have 60 minutes to make this work. thanks Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements
On 23 Apr 2001, at 14:45, Brad Clements wrote:
I've been using zope 2.2.2 with a plugable brain that does something like this:
class Mybrain: def __init__(self): self.__dict['myvar'] = 'xyzzy'
Uh, sorry, this should probably not be on zope-dev. anyway the answer is self.aq_parent.__dict__['myvar'] = 'xyzzy' I'm using the pluggable brain approach so I can get first-myvar in dtml-in Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements
participants (1)
-
Brad Clements