[web2py] Re: Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
I know, that's why I wondered, why did it produced such a weired url at 
first place.

[web2py] Re: Url variable's problem

2010-12-24 Thread mdipierro
They are equivalent.

BTW. make it shorter:

redirect(URL('search',args=[lang,
word],vars={'indx':search_form.vars.indx}))

On Dec 24, 10:04 am, "Arun K.Rajeevan"  wrote:
> After a bit of trail and error through session.flash
>
> I changed following
>
>  indx = dict(indx = search_form.vars.indx)
>  redirect(URL(r=request, f='search', args=[lang, word], vars=indx))
>
> to
>
>  redirect(URL(r=request, f='search', args=[lang, word],
> vars={'indx':search_form.vars.indx}))
>
> seems working now. (On Linux, previously was on windows)
> But what was wrong with first approach!!!