[Zope] How do I get product to return other than ZMI page?

Bill Hewitt wphewitt at comcast.net
Mon Mar 29 18:45:00 EST 2004


John:

instead of: 

context.manage_addProduct['myProduct'].manage_addAction(request.id,request)

I have never used manage_add (except when I'm using the ZMI) - But I do
know it is part of the ZMI and would *probably* return the ZMI interface
when you use it...


Try:

context.manage_addProduct['myProduct'].Action.createInObjectManager(request['id'], request)
[ABOVE IS ALL ON ONE LINE..... Action is a class within myProduct] this
will create the object... Then it *should* run the return routine.....

Hope this helps.....


Bill




More information about the Zope mailing list