>
> >First, make sure you're returning the instances in the 
> context of their
> >container, e.g. instead of:
> >
> >    def returnstuff(self):
> >        class foo:
> >            pass
> >        return foo()
> >
> >do
> >
> >    def returnstuff(self):
> >        class foo:
> >            pass
> >        return foo().__of__(self)
> 
> 
> If you want to do that, then you need to inherit the acquisition base
> class too....
> 
>     def returnstuff(self):
>         class foo(Acquisition.Implicit):
>             pass
>         return foo().__of__(self)

Oops... yes. Thanks....

_______________________________________________
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