No,  but you can use  requires=IS_NOT_IN_DB(table, query), if you need to
make a self reference to the table you must write it after table definiton
or in controller before calling the validator,  and can be applied to
multiple fields on the same table.

Hope it helps.

El dom., 14 de oct. de 2018 09:34, lucas <sjluk...@gmail.com> escribió:

> hello one and all,
>
> is there a DAL level way to impose a constraint on a single table but
> unique on multiple fields within that single table?
>
> thanx in advance, lucas
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to