[Zope-dev] How to create instance of a Zclass w/ python script ??

Dieter Maurer dieter@handshake.de
Thu, 24 Oct 2002 21:14:05 +0200


Nicolas LAURANCE writes:
 > ...
 > I want to create many instances in one shot, so I wrote a small python
 > script (no external method) to set the properties.
 > 
 > The thing is I don't seem able to trigger the creation of the object
 > 
 > Tried:
 > Contact.CreateinObjectManager(id,REQUEST) => no
 > Products.Contact.CreateinObjectManager(id, REQUEST) => no

   obj= destination_objectmanager.manage_addProduct[your_product].Contact.CreateInObjectManager(...)


Dieter