[Zope] Return ZPT with parameters

Hedley Roos hedley@ise.co.za
Thu, 31 Oct 2002 10:54:21 +0200


Hi everyone

The situation is:
1. A pagetemplate, say listInstances, lists hyperlinked instances. A
hyperlink has the form http://foo/instances/1.
2. Clicking on said link takes one to ZPT editInstance.
3. ZPT editInstance has a submit button, name btnOK:method.

In method btnOK I eventually return ZPT listInstances. However,
listInstances does not display the new instance I have added.
My code is currently: A) return self.index_html()
This does work: B) return
self.REQUEST.RESPONSE.redirect(self.index_html().absolute_url())

The problem with B is that I cannot pass parameters to the ZPT (I need to do
this, but this is beyond the scope of the question).

To summarize: I would like to use A and have ZPT listInstances display the
newly added instance.
BTW I use ZPatterns.

Thanks
Hedley
____________________________________________

ISE Technologies (Pty) Ltd
Innovation Centre, Technopark, Stellenbosch, 7650, South Africa
Tel: +27 (0) 21 880 2456
Fax: +27 (0) 21 880 2457
Web: www.ise.co.za
____________________________________________

"The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). This
information may be subjected to attorney and client or other privilege. It
must not be disclosed to any person without ISE Technologies permission."
"Please note that the recipient must scan this e-mail and any attached files
for viruses and the like. ISE Technologies accepts no liability of whatever
nature
for any loss, liability, damage or expense resulting directly or indirectly
from the access of any files that are attached to this message."