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). Sascha -- .-> Sascha Matzke - sascha@bespin.de - http://www.bespin.de -. | I wanna be the mover to real anarchy !!!!!!! | | ATR | `-- On this earth for 24 years, 3 days <----------------'
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 ---------------------------------------------
participants (2)
-
Martijn Pieters -
Sascha Matzke