Re: [web2py] know if a form have pass every validators

2011-07-06 Thread Richard Vézina
Forget about it... I found the problem... There was to many things anyway. ;-) Richard On Wed, Jul 6, 2011 at 1:52 PM, Richard Vézina wrote: > I realise that it's not what I need when I just press send... Since not all > the validators have passed when I want to my code to enter in action... >

Re: [web2py] know if a form have pass every validators

2011-07-06 Thread Richard Vézina
I realise that it's not what I need when I just press send... Since not all the validators have passed when I want to my code to enter in action... I face a really bizzard issue... Here my model : db.define_table('ref_tregistry', Field('tregistry_id','id'), Field('vregistry_id',db.ref_vregi

Re: [web2py] know if a form have pass every validators

2011-07-06 Thread Miguel Lopes
You can also use form.errors if form.accepts(...): ... elif form.errors: ... HTH, Miguel On Wed, Jul 6, 2011 at 5:08 PM, Anthony wrote: > form.accepts(...) returns True if all validators pass and False otherwise > -- is that what you're looking for? > > Anthony > > On Wednesday, July 6, 2

Re: [web2py] know if a form have pass every validators

2011-07-06 Thread Anthony
form.accepts(...) returns True if all validators pass and False otherwise -- is that what you're looking for? Anthony On Wednesday, July 6, 2011 11:43:29 AM UTC-4, Richard wrote: > Hello, > > Is there a way I can test if form have been submit and if no validators > have triggered? > > Thanks

[web2py] know if a form have pass every validators

2011-07-06 Thread Richard Vézina
Hello, Is there a way I can test if form have been submit and if no validators have triggered? Thanks Richard