This works, thanks. FYI I need the username to stay in the matchdict, so my 
final line looks like:

            return HTTPFound(location=request.route_url('user_recent', 
username=auth.username, _query={'page':'1'}), headers=headers)


On Sunday, July 20, 2014 3:31:48 PM UTC-4, Wichert Akkerman wrote:
>
>
> On 20 Jul 2014, at 21:15, Michael <taoma...@gmail.com <javascript:>> 
> wrote:
>
> hi all, how do I properly create a param with route_url ? when I do 
>
>
> *return HTTPFound(location=request.route_url('user_recent', 
> username=auth.username, page='1'), headers=headers) *
>
>
> Use the _query parameter for route_url:
>
> url = request.route_url(‘user_recent’, _query={‘username’: auth.username, 
> ‘page’: ‘1’})
> HTTPFound(url, headers=headers)
>
>
> Wichert.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to