Re: match_param not behaving as expected - pyramid-1.2.1-Py2.7

2011-10-29 Thread Si
Thanks for the clarification, and your very prompt reply. For anyone following along, I've shown the correction to my example below. Michael; your article shows practical use of match_param beautifully: http://michael.merickel.org/2011/8/23/outgrowing-pyramid-handlers/ I agree the Pyramid

match_param not behaving as expected - pyramid-1.2.1-Py2.7

2011-10-28 Thread Si
Could anyone explain why the below test for request_param works ok, but the test for match_param does not? MATCH - http://127.0.0.1:8080/request_param?action=anything NO MATCH - http://127.0.0.1:8080/match_param?action=edit Pyramid 1.2.1 / Python 2.7 def vc_request_param(request): return

Re: match_param not behaving as expected - pyramid-1.2.1-Py2.7

2011-10-28 Thread Michael Merickel
match_param is for matching items in the matchdict. These are patterns in your url, for example if you had the url /match/{param}, then you might use match_param='param=edit' to only match when that pattern is edit. request_param is used to match the query string in your url (things after the