[Zope-dev] Plugable brains changed in 2.3x vs 2.2?

Brad Clements bkc@murkworks.com
Mon, 23 Apr 2001 16:33:47 -0400


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