[Zope] creating ZClass instances from an external method

Gary Reynolds garyr@dentistry.usyd.edu.au
Wed, 15 Nov 2000 09:34:17 +1100


I have a need to do some creating of objects from python code.

Am I correct in thinking that to add a new object, that is one of my
products, I need to do something like:

  folder.manage_addProduct['ProductName'](id='foo', title='bar')

I have sample code to create simple things like using
manage_addDTMLMethod, etc, but nothing for a product.

The way I've got my data stored is in a combination of dictionaries
and lists... it was an ugly enough process to export it - now
importing it seems worse.

Any help would be appreciated.

Cheers,
Gary

-- 
Web Site Developer
Faculty of Dentistry
University of Sydney

Ph: 02 9351 8350
garyr@dentistry.usyd.edu.au