[Zope] Programmatically creating instances of a ZClass

Borislav borislavd@gmx.net
Wed, 04 Sep 2002 13:08:36 -0500


I have a Zope Product 'MyProduct' that defines a ZClass 'MyZClass'. I'd 
like to create instances of this ZClass in a python script. I couldn't 
find any info on how to do that in 'The Zope Book'. I tried something like:

myObject=Container.MyFolder.manage_addProduct['MyProduct'].manage_addMyZClass(id=myId)

but it didn't work.

Any help will be appreciated.

--Borislav