Hi *,

> But somehow I have the feeling it has more to do with the 'and the
> container is not wrapped' part of the message. Not that I can make sense
> of it ;-)

Mmm, after even more searching, and not understanding I found

http://www.mail-archive.com/[EMAIL PROTECTED]/msg11438.html

and changed my code to:


    def __of__(self, parent):
        '''foo'''
        if not hasattr(parent,'aq_base'):
            return self

        folder,id = self.remoteid.split(':')
        acl = parent.unrestrictedTraverse(folder)
        remote = acl.getUser(id)

        return Acquisition.ImplicitAcquisitionWrapper(aq_base(self),

                                 aq_base(remote).__of__(parent))

Now, this actually seems to work. If only I knew why....


Cheers,

  Joerg

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to