[Zope] Add ZClass Item to Folder from Python?

Dieter Maurer dieter@handshake.de
Wed, 14 Nov 2001 22:37:30 +0100


Chris Bruce writes:
 > Is there any way to add a ZClass to a folder using python only?  I have
 > been able to do this with dtml by calling the xxx_add dtml method in
 > the ZClass like such:
 > 
 >   <dtml-with "manage_addProduct['Feedback']">
 >     <dtml-call "Feedback_add(_.None,_,NoRedir=1)">
 >   </dtml-with>
Already answered in the mailing list (--> archives):

	product= context.manage_addProduct['Feedback']
	product.Feedback_add(None,product,NoRedir=1)


Dieter