Thomas Güttler wrote:
Hi!
I need to access acl_users of the parent in the constructor of a python product. Acquisition seems to fail in this situation.
Any hints?
The function for creating the Python Product looks like this:
def manage_addOOPServer(dispatcher, id=0, REQUEST=None): "Add a new OOPServer" oopserver=OOPServer(id) dispatcher._setObj(id, oopserver)
Please CC to me, I am not on the list.
thomas
_______________________________________________ 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 )
get the object via obj = getattr(dispatcher,id) then it should have the acquisition cheers, bernd