However, I must admit,  as there isn't a built in function,  I find the 
code more transparent like this...

try:
    myint = int(request.args(0))
except:
    myint = None

or if we are testing whether this is a valid id...

myvalidrecord = db.mytable(request.args(0))
If not myvalidrecord:
    session.flash = 'record not found'
    redirect(URL())

I suppose it's mainly a question of personal preference,  but,  having 
functions calling other functions can cause confusion when you posting code 
to the group.
Thanks,  D

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to