[web2py] Re: request.intargs RFC

2012-04-30 Thread Anthony
> > request.args(0,default=0, cast=int, requires=list_of_validators, > url_onerror=URL(...)) > I like it.

[web2py] Re: request.intargs RFC

2012-04-30 Thread Massimo Di Pierro
On Sunday, 29 April 2012 19:56:21 UTC-5, Anthony wrote: > > On Sunday, April 29, 2012 7:54:11 PM UTC-4, Massimo Di Pierro wrote: >> >> I often run into this problem: >> >> def index(): >> record=db.tablename(request.args(0)) or redirect(URL('error')) >> >> which assumes request.args(0) is i

[web2py] Re: request.intargs RFC

2012-04-29 Thread Anthony
On Sunday, April 29, 2012 7:54:11 PM UTC-4, Massimo Di Pierro wrote: > > I often run into this problem: > > def index(): > record=db.tablename(request.args(0)) or redirect(URL('error')) > > which assumes request.args(0) is integer or missing. If not it issues a > ticket. > If request.args(