[Zope] creating z-class in folder
Dieter Maurer
dieter@handshake.de
Tue, 10 Dec 2002 20:20:08 +0100
Jorg E. R=F8dsj=F8 writes:
> I am trying to create a z-class (which resides in a product I have mad=
e) in a given folder through a python script.
>=20
> My syntax is obviously wrong (since it is not working), but alas I can=
not find out what it
> is.. anyone?
>=20
> context.manage_addProduct['productName'].manage_z-class-constructor("s=
pam")
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