Also, request.args() takes some additional arguments:

requests.args(0, default=some_default, cast=int, otherwise=
a_function_or_redirect_url)

Anthony

On Wednesday, November 29, 2017 at 11:19:57 AM UTC-5, Massimiliano wrote:
>
> Try it without passing the args
>
> def test():
>     print request.args(0) #return None
>     print request.args[0] #fail
>
> On Wed, Nov 29, 2017 at 5:16 PM, Yoel Benitez Fonseca <ybenit...@gmail.com
> > wrote:
>
>> ¿What is the diff?
>>
>> --
>> Msc. Yoel Benítez Fonseca
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Massimiliano
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to