I am for it. On Feb 8, 10:41 am, Jonathan Lundell <jlund...@pobox.com> wrote: > On Feb 8, 2010, at 8:13 AM, DenesL wrote: > > > Having had the need recently, I would like to see: > > IS_INT_IN_RANGE(1) # any integer>0 (up to sys.maxint) > > IS_INT_IN_RANGE(max=10) # any integer less than 10 > > and similarly for IS_FLOAT_IN_RANGE(). > > Suggestion: interpret None as no limit. So your two examples would be: > > IS_INT_IN_RANGE(1, None) > IS_INT_IN_RANGE(None, 10) > > The error message would have to adjust, of course. > > Similarly for float.
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.