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,                [EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to