[Zope-dev] Can't return / publish object of a dictionary?

seb bacon seb@jamkit.com
Thu, 16 Jan 2003 16:40:21 +0000


Sounds like an acquisition problem to me.  Are the objects wrapped?

Try

  def _getOb(..):
    ...
    return someobject.__of__(self)

Lars Heber wrote:
> Hi zopers,
> 
> my class has a list with several objects in it.
> When calling my self written _getOb() method, I want to return one of
> these objects.
> But I get an Unauthorized...
> 
> When I put an object of the same type into a normal class attribute
> (self.dummyObject), return of that object from _getOb() works perfectly.
> 
> What am I doing wrong?
> 
> Thanks a lot!