I was using version 1.43 which is from september. I updated to the new one and now it works fine. I don't know what was wrong, but the validation was not working properly even when it was serialized only once.
Anyway, thanks for the help. Problem solved. On 18 Dec, 14:28, mdipierro <mdipie...@cs.depaul.edu> wrote: > which version of web2py are you using. With some old versions there > was a problem if you serialized the same form twice. > > Massimo > > On Dec 18, 7:06 am, pedro <pedro...@gmail.com> wrote: > > > I didn't notice that, i put fives out of mistake, but if i put for > > examples 1's across the board, the problem subsists. The validators > > are not not catching anything, but the form is not being accepted for > > some other reason. > > > (...) > > > Ok, I just noticed something rather strange is happening. I usually > > output all the request data for debugging purposes. > > > So, my view looks like this: > > > ================================================== > > {{extend 'layout.html'}} > > <h1>Painel de Controlo</h1> > > <p> Aqui poderĂ¡ definir as suas apostas e consultar estatistcas. </p> > > > {{=form}} > > > <!-- --> > > <h1> Debugs e afins </h1> > > > <h2> response._vars </h2> > > {{=BEAUTIFY(response._vars)}} > > > <h2> response.vars </h2> > > {{=BEAUTIFY(request.vars)}} > > > <h2> response.args </h2> > > {{=BEAUTIFY(request.args)}} > > > <h2> request.vars </h2> > > {{=BEAUTIFY(request.vars)}} > > > {{=request.vars}} > > > ============================================= > > > Now the strange this is: > > on request._vars the form naturaly shows, and if i used that form > > everything works as expected, both with or without BEAUTIFY, whereas > > if I use the form that is output by {{=form}} it does't work > > regardless using BEATIFY or not. > > > This is rather weird. The HTML seems identical but it's not so easy to > > compare since is not indented. BTW, is there any way to indent the > > output HTML? It would help the debugging process. > > > Pedro > > > On 18 Dec, 03:41, DenesL <denes1...@yahoo.ca> wrote: > > > > pedro, > > > > those '5' scores will not validate using requires=IS_IN_SET > > > (['-','0','1','2','3','4','5+']) > > > '5' is not in the set. > > > you should be getting a "value not allowed!" message for each field. > > > > > My request.vars has this: > > > > <Storage {'t1score2': '5', 't1score1': '5', '_formname': 'default', > > > > 't2score1': '5', '_formkey': '269539891568', 't2score2': '5'}> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---