IS_EMPTY_OR is an alias for IS_NULL_OR, and they are validators so you would do db.table.field.requires=IS_EMPTY_OR(...)
BR, Denes. On Feb 10, 4:59 am, Jason Brower <[email protected]> wrote: > That doesn't seem to work. I don't think there is a function called > IS_EMPTY_OR in web2py. > BR, > Jason > > On Tue, 2010-02-09 at 02:39 -0800, selecta wrote: > > IS_EMPTY_OR(IS_IN_SET(["A","B","C","D","E","F"])) > > > On Feb 9, 11:36 am, selecta <[email protected]> wrote: > > > IS_EMTPY_OR(IS_IN_SET(["A","B","C","D","E","F"])) > > > > On Feb 9, 7:40 am, Jason Brower <[email protected]> wrote: > > > > > Don't know if I can discribe this in type but... > > > > I need a validator that can alow only one A B C D E F other wise it > > > > should be 0 > > > > I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"]) > > > > unique=True and default=0 all at the same time... > > > > Best Regards, > > > > Jason Brower -- You received this message because you are subscribed to the Google Groups "web2py-users" 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.

