This is elegant.

On 21 Apr, 14:57, desfrenes <[email protected]> wrote:
> Hi !
>
> I was looking for a way to set default values to request.vars. I use
> this:
>
> if request.vars.offset == None: request.vars.offset = 0
>
> But maybe there is a more elegant solution ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to