[Nitro] [PATCH] Separate get_params and post_params
Jonathan Buch
john at oxyliquit.de
Thu Dec 21 06:10:14 EST 2006
Hi,
> btw, why is it useful to separate get/post params? if u use them
> through params (which in your latest implementation just selects from
> one collection or the other anyway)?
you may not remember it, but this idea appeared in the params thread
and you asked me (or others) to implement this. :P
The idea was the following:
When using the POST method, also provide access to the GET parameters.
This is now done as well kinda, but has drawbacks, as parameters can get
overwritten.
So I proposed the following (though I think it was in pseudo code):
* GET
* save GET params in get_params
* point params to get_params
* point params= to get_params=
* POST
* save POST params in post_params
* save GET params in get_params
* use get_params.update(post_params) as params (post precendence)
* point params= to post_params (maybe merged params here as well?)
Btw, I'm really happy that Noe asked where he could help a little around
Nitro, also to 'get down to code' as I understood. That's why I gave him
his little thing, and I'd be quite happy if I can get him to do more slav...
eh, I mean little enhancements. ;D
Jo
--
Feel the love
http://pinkjuice.com/pics/ruby.png
More information about the Nitro-general
mailing list