On Thu, Dec 15, 2011 at 10:29 PM, Anthony <abasta...@gmail.com> wrote:

> Yes, in that case, your model is correct. I was confused because you said
> you want to "validate the existence of only 1 scale per group" -- yet there
> can be many scales per group. But from your example, it looks like maybe
> you're trying to ensure that the scale ranges for a given group do not
> overlap -- is that it?
>
>

Yes, that's my problem.
Is there a way web2py can handle that validation?
for example... if i have 2 scales:
 - min_v : 0
 - max_v : 10

 - min_v : 21
 - max_v : 30

It shouldn't let me save the following
 -min_v : 8
 -max_v : 24

I hope you understand what I'm trying to do :D

Javier

Reply via email to