durusmail: quixote-users: How to proceed from one form to another?
How to proceed from one form to another?
2003-04-29
How to proceed from one form to another?
Greg Ward
2003-04-29
On 28 April 2003, Benjamin Scherrey said:
[arg: please wrap your lines to 75 columns or less]

> but I'm just missing. I can think of several
> ways to pass data behind the scenes but redirecting the browser
> from one form to another is
> stumping me.

request.redirect().  pydoc quixote.http_request for (slightly) more info.
Example usage:

  return request.redirect("other/page")

Note that request.redirect 1) sets the response status and "Location:"
header to effect the redirect, and 2) returns an HTML page describing the
redirection, just in case the browser doesn't handle HTTP redirects.  If you
forget to return the value of request.redirect(), Quixote will most likely
complain about a published callable returning None.

        Greg
--
Greg Ward                          http://www.gerg.ca/
Nostalgia isn't what it used to be.

reply