[Zope] Newbie: ZClasses
Chris Withers
chrisw@nipltd.com
Wed, 14 Aug 2002 10:05:55 +0100
rra42 wrote:
> I have begun creating some products based on ZClasses.
Don't ;-)
> Can anyone tell
> me how I can programmatically create new instances of these products and
> add them to a folder, rather than create them one by one via the TTW
> interface?
context.manage_addProduct['your zclass product'].your_zclass_constructor()
...or something. If you look at the add script for your ZClass (the one that
gets fired when you add TTW ;-) you'll see code like the above. Copy it to your
python script.
cheers,
Chris