web2py.com/book is issuing an error ticket

37 views
Skip to first unread message

Anthony

unread,
May 25, 2013, 11:01:45 AM5/25/13
to web...@googlegroups.com
Same thing if you go directly to http://www.web2py.com/books/default/chapter/29.

Anthony

Massimo Di Pierro

unread,
May 25, 2013, 11:33:48 AM5/25/13
to web...@googlegroups.com
Fascinating. The upgrade to 2.4.7 broke

request.args(1,cast=int,default='0')

is supposed to be

request.args(1,cast=int,default=0)

Alan Etkin

unread,
May 25, 2013, 12:44:34 PM5/25/13
to web...@googlegroups.com
Fascinating. The upgrade to 2.4.7 broke

request.args(1,cast=int,default='0')

I reported this same issue in the book app project site.

https://github.com/mdipierro/web2py-book/issues/60

I think the change is caused by the modified storage.py module in http://code.google.com/p/web2py/source/detail?r=a942e058c684987c211f13739b32f6308941f521

Now it seems there's no cast of default values.

Massimo Di Pierro

unread,
May 25, 2013, 12:51:13 PM5/25/13
to web...@googlegroups.com
Sorry I had missed it.

Alan Etkin

unread,
May 25, 2013, 3:54:57 PM5/25/13
to web...@googlegroups.com
Is there any reason to turn off the cast option if request.args() takes a default parameter? (storage.py line 265) That's why '0' is not returned as 0 in the book app. Should I open an issue about this?
Reply all
Reply to author
Forward
0 new messages