[Zope-dev] permissions/authorization on non ZClass/product ob jects

Chris McDonough chrism@digicool.com
Thu, 3 Aug 2000 10:10:01 -0400


>
> >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....