Fran,

> > notnull=True, unique=True
>
> I see that these provide DB-level protection of fields so always take
> effect, but trigger tickets if violated

That is what I thought, furthermore, 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.

Am I wrong?


Kind regards,

Annet.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to