My application has a search form: it self submit to whatever page it is in
and redirects to search function.
I took vars from search form (like, term = request.args(0)) and redirect as
redirect (c='..', f='..', args=[v])
Now, in result of search form I get underscores(_) if search term include a
There's a short discussion here
http://web2py.com/book/default/chapter/04#Dispatching
Which seems to suggest what you are seeing. Perhaps there's an ENV variable
that can provide the un-manipulated args?
On Jan 1, 2011, at 12:38 AM, Arun K.Rajeevan wrote:
> My application has a search form: it self submit to whatever page it is in
> and redirects to search function.
> I took vars from search form (like, term = request.args(0)) and redirect as
> redirect (c='..', f='..', args=[v])
>
> Now, in res
Ok, I'm gonna experiment with raw_args.
I was wondering what's this *#routes_apps_raw=['myapp'] *thing before (I
was customizing routes)
When I use this functionality, am I correct in assuming that, I've to do
encoding and decoding both?
I can decode request.raw_args.
But where did I encode?
I
I did just this and seems working
args = request.raw_args
args = args.split('/')
But now problem is with download function.
It works by taking filename from request.args
now, it should take value from request.raw_args
My download function is following:
def download():
return response.downl
On Jan 1, 2011, at 9:23 AM, Arun K.Rajeevan wrote:
> Ok, I'm gonna experiment with raw_args.
> I was wondering what's this #routes_apps_raw=['myapp'] thing before (I was
> customizing routes)
Don't forget to remove the #.
>
> When I use this functionality, am I correct in assuming that, I've t
Thank you for your notes and to the point quotes. :)
On Jan 1, 2011, at 10:05 AM, Arun K.Rajeevan wrote:
> I did just this and seems working
>
> args = request.raw_args
> args = args.split('/')
>
> But now problem is with download function.
> It works by taking filename from request.args
> now, it should take value from request.raw_args
>
> My do
8 matches
Mail list logo