[Zope] Create ZClass instance from python

Dieter Maurer dieter@handshake.de
Wed, 7 Nov 2001 23:48:33 +0100


Hans N. Beck writes:
 > I've created a product ("myItem"), containing a
 > zclass "ItemType" with base class objectmanager.
 > 
 > The python code is like this (got from some internet sources):
 > context.manage_addProduct('myItem').ItemType_add(_.None,_, Redir=1)
product= context.manage_addProduct['myItem']
product.ItemType_add(product,context.request,Redir=1)


Dieter