>
> *With all of the below validations.... 
> *1- Do they ALL execute
> or
> 2- Execution stops at the first one that fails, 
>
> What I mean is say a user uses a username="bill"
> the first validator will display the message, but does web2py continue to 
> evaluate the others?
>
>
> *If so..
> *  Wouldn't it be wise to put the most likely validators at the beginning 
> of the list?
>

Validation stops at the first validator that fails. I suppose it would be 
slightly more efficient to put the validators that are most likely to fail 
at the beginning of the list, though probably makes little difference 
(keeping validators that access the db, such as IS_NOT_IN_DB, at the end, 
though is probably a good idea -- no reason to hit the db unless all the 
other validators have passed).

Anthony

-- 



Reply via email to