> ...
>
> Notice, though, that if that fixes the validation, you've still got the
> problem that the user has selected a last name that's no longer in the
> database. If you can confirm that this is indeed the bug, you might want to
> leave the code as-is, since the validation failure is cor
Thanks for all the help again. It should have been obvious to me
before but I am sure the problem is that values coming back from
get_last_names() are different when the form is generated compared to
when it is validated. So I really need to just get the list of last
names once and it use it both
Thanks for all the thoughts on this. I will do some more debugging on
this tomorrow.
I am new to web2py. Is there a way to have the validator code give me
a better indication of what value it got and what it expected? ( Aside
from adding code to web2py itself, of course! )
--
You received this m
What is in last_names?
Just a simple Python list.
> Which web2py version?
1.75.4
>
> Denes.
>
> On Mar 2, 1:46 pm, "hschill...@nasa.gov"
> wrote:
>
>
>
> > I have a form with a string field that uses the IS_IN_SET validator.
> > The set of strings th
I have a form with a string field that uses the IS_IN_SET validator.
The set of strings that is allowed must be generated dynamically each
time the form is generated. So I add the validator in the controller.
( See the snippet below. )
The problem is that sometimes I get "value not allowed" valida
5 matches
Mail list logo