[web2py-devs] w3 validation

58 views
Skip to first unread message

Richard

unread,
May 27, 2016, 3:15:07 PM5/27/16
to web2py-developers
Hello,

As far as I understand w3 app (https://github.com/mdipierro/w3) validation occurs in forms.bs3.html (https://github.com/mdipierro/w3/blob/master/views/forms.bs3.html)...


Could it be interresting to rely on/improve it for validation?

It already seems to include mechanism to manage dependency between field validator when you want a field to be mandatory in case another field has certain inputed value which I am not sure the acutal w3 implementation allow?

Thanks

Richard

Richard Vézina

unread,
May 27, 2016, 4:10:54 PM5/27/16
to web2py-d...@googlegroups.com
Doh!

forms.bs3.html is a partial for rendering form according to field type... So, I as far as I understand w3 only implement client side form rendering instead of returning generated html from server side processing which process of the whole form to return validator error for instance...

Do I am rigth?

Thanks

Richard

--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Vézina

unread,
May 27, 2016, 4:22:01 PM5/27/16
to web2py-d...@googlegroups.com
Is the use case that I was discribing above where there is fields dependencies in the way validation should occur is something that will be consider in w3p? Or such kind of use case will still be leave the developer discretion?

If you consider integrate such use case do you we have a idea how validators will be defined? Are we still be able to solely define validators in python code?

Using ractive-validator would bring definition of validator on js side and we would have to pass it a part of the information from web2py validators which would be awful...

@Massimo, what you thought about that?

Thanks

Richard
Reply all
Reply to author
Forward
0 new messages