> On 20 Jul 2014, at 21:15, Michael <taomaili...@gmail.com> 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