10 Dec
2002
10 Dec
'02
7:20 p.m.
Jorg E. Rødsjø writes:
I am trying to create a z-class (which resides in a product I have made) in a given folder through a python script.
My syntax is obviously wrong (since it is not working), but alas I cannot find out what it is.. anyone?
context.manage_addProduct['productName'].manage_z-class-constructor("spam") Hopefully, you do not write the "-" in your script...
Otherwise, the syntax does not look wrong. Do you pass the parameters to your constructor that it expects? When it were a DTML object, "spam" would be wrong and you should expect "Name/KeyError"s. Dieter