Solved it using this:
arglist = "page = 0" + "&orderpref=" + "None" + "&agent=" + str
(form.vars.agent) + \
"&fsource=" + str(form.vars.fsource) +
"&fromdate=" + str
(form.vars.fromdate) + "&to=" + str(form.vars.to)
redirect(URL(request.application, 'default', 'searchpurchaseresults/?'
+ arglist ))
I received at other function using
myarg = request.vars.varname
I think code's bit clumsy which reduces readability of code, any other
way to produce that arglst ??
On Jan 14, 4:39 pm, vvk <[email protected]> wrote:
> I'm redirecting from a function as:
> redirect(URL(r = request, f = 'testingargs', args = arglist ))
>
> At "testingargs" function, I'm getting "underscores" for arguments
> (request.args(0)) if there are any spaces in arguments. Is there a way
> to receive arguments without getting these underscores ?
>
> redirect(URL (f="testingargs", args=["these are args with spaces"])
> I'm getting at testingargs function for request.args(0):
> these_args_have_spaces
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.