Simon Belak wrote:
> [EMAIL PROTECTED] wrote:
> > What do I do if some_page_submit decides that the values in **kw fail
> > validation and I need to post them back to some_page, along with (for
> > example) a dict of errors? I'm not entirely sure how to set up
> > some_page (or indeed the template it displays, including the form) to
> > work under both those conditions.
>
> You can either do a redirect (via turbogears.redirect) or just simply
> call another [exposed] method (adding errors as another argument) as you
> would normally.

Is turbogears.redirect comprehensively documented anywhere? The API
docs for "Package turbogears" doesn't seem to include 'redirect'. The
nearest I can find in the index is cherrypy.lib.httptools.redirect,
which takes a single ''url" argument, whereas I've seen
turbogears.redirect take more than 1 argument. In particular how would
I ensure my additional arguments are passed by POST rather than GET?

Thanks,

-- 
Ben Sizer


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to