[Nitro] param handling
manveru at weez-int.com
Tue Oct 24 21:09:04 EDT 2006
On Wednesday 25 October 2006 02:19, Jonathan Buch wrote:
> On Tue, 24 Oct 2006 12:10:01 +0200, George Moschovitis
<george.moschovitis at gmail.com> wrote:
> >> another thing is, GET-parameter cannot overwrite POST-params, right?
> > you suggest that instead of request.params we have separate
> > request.get_params/request.post_params?
> Suggestion: When method == POST, use request.post_params as .params
> but merge them with .get_params (not overriding the .post_params).
> def params
> post? ? get_params.update(post_params) : get_params
I agree with that, there were enough problems with that in PHP, we should
learn from their errors :)
More information about the Nitro-general