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

Bill Hewitt wphewitt at comcast.net
Sun Mar 28 14:42:46 EST 2004


I dont know if this is kosher, but I generally just add the following to
my "add" method (Straight from Zope Product defaults)

request.RESPONSE.redirect(instance.aq_parent.absolute_url() +
'/?caller=Manager')
##################################################################
[Notice that the above line calls index_html from the context of the
parent directory with a content argument - the '/?caller=Manager' part.
The argument part(2nd line) is where you would put the name of the file
you want to return - it inserts your doc in the correct context for what
you want to do(?).....] Probably a slicker way to do it, but this always
works for me...]
##################################################################


Good Luck

WPH




More information about the Zope mailing list