On Jun 11, 7:49 am, annet <annet.verm...@gmail.com> wrote:
> notnull=True, unique=True

I see that these provide DB-level protection of fields so always take
effect, but trigger tickets if violated
Validators provide nice user-friendly warnings instead of tickets, but
are only used if the application calls them (i.e. custom forms/
functions need to check explicitly)

Think this would be useful info to add to the docs:
http://web2py.com/examples/default/dal

> ondelete='RESTRICT'
> Isn't displaying a warning message just a matter of 'translating' this
> error ticket into a response.message or response.flash 'thing'?

Providing a wrapper to catch all DB violations sounds very nice :)

Alternatively, can we create a Validator to provide this?

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

Reply via email to