[Zope] Acquisition at initialization time

Martijn Pieters mj@antraciet.nl
Sun, 17 Oct 1999 14:51:22 +0200


At 14:17 17-10-99 , Sascha Matzke wrote:
>Hello,
>
>I have an product which can only be added to a specific other product
>(a folder).
>In its __init__() it depends on aquired attributes from the specific
>folder, which doesn't seem to be available... (I get an
>AttributeError).

At the time of instanciation, no parent has been set yet, so acquisition 
doesn't work. You'll have to pass those parameters in from the method that 
creates the instance.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| T: +31 35 7502100 F: +31 35 7502111
| mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
---------------------------------------------