>
> request.args(0,default=0, cast=int, requires=list_of_validators,
> url_onerror=URL(...))
>
I like it.
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
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(
3 matches
Mail list logo