-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2 Aug 2006, at 06:37, Kees de Brabander wrote:

Hi,
Apparently my knowledge of Zope/Python is still to limited.
I have a product that derives from Folder. When I add this product to a
folder via zmi I want to have it populated with other products to it
programmatically. I tried to do so in the __init__ function. That works with
objects like acl_user folders, but not with products in the products
directory. Can anyone send me in the right direction or at least give a hint
where to look for a solution?

Do not do this in __init__ as you have no acquisition at that point. Use manage_afterAdd for that.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFE0IPZRAx5nvEhZLIRAhR3AJ9dWgX2g9oCnmYGZZ78ifk8JapawACcD7IH
rP10ndkIi7DeBIX26taDPhs=
=m63H
-----END PGP 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