On Jun 11, 1:47 pm, annet <annet.verm...@gmail.com> wrote: > I thought that by adding the > following validators: > db.provincie.provincie.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB > (db,'provincie.provincie',error_message=T('provincie already in > database'))] > ... the notnull=True would be covered at web2py form level by the > IS_NOT_EMPTY() and the unique=True by the IS_NOT_IN_DB(..) validator.
These work for SQLFORM & crud. However they won't work for some custom forms/functions. F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---