[Zope] Accessing acl_users in __init__() of Python Product

Bernd Dorn zope-mailinglist@mopa.at
Wed, 02 Jul 2003 17:44:59 +0200


Thomas G=FCttler wrote:

> Hi!
>=20
> I need to access acl_users of the parent in the constructor
> of a python product. Acquisition seems to fail in this situation.
>=20
> Any hints?
>=20
> The function for creating the Python Product looks like this:
>=20
> def manage_addOOPServer(dispatcher, id=3D0, REQUEST=3DNone):
>     "Add a new OOPServer"
>     oopserver=3DOOPServer(id)
>     dispatcher._setObj(id, oopserver)
>=20
> Please CC to me, I am not  on the list.
>=20
>  thomas
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )


get the object via
obj =3D getattr(dispatcher,id)

then it should have the acquisition

cheers, bernd