Re: [web2py] Can the web2py validators be used outside of forms?

2014-12-10 Thread Niphlod
BTW, for the specific case there's IS_LIST_OF_EMAILS :P On Wednesday, December 10, 2014 10:21:07 AM UTC+1, desta wrote: > > Thank you Manuele for the quick answer. Even though I read the > documentation I didn't understand that I could do that! Thank you for > pointing that out to me. It works g

Re: [web2py] Can the web2py validators be used outside of forms?

2014-12-10 Thread desta
Thank you Manuele for the quick answer. Even though I read the documentation I didn't understand that I could do that! Thank you for pointing that out to me. It works great. Thanks again. On Wednesday, December 10, 2014 10:51:22 AM UTC+2, Manuele wrote: > > Off course you can! > > http://web2p

Re: [web2py] Can the web2py validators be used outside of forms?

2014-12-10 Thread Manuele Pesenti
Off course you can! http://web2py.com/books/default/chapter/29/07/forms-and-validators#Validators Check out the examples reported in doc for un derstanding the standard behaviour of validators, such as: |>>> IS_MATCH('a')('ba') ('ba', ) # no pass >>> IS_MATCH('a',strict=False)('ab') ('a', None)

[web2py] Can the web2py validators be used outside of forms?

2014-12-10 Thread desta
Hi, web2py features some really useful validators. Is it possible to use them outside of forms? For example, lets assume a string that contains comma separated emails as inputted from the user. After splitting the string to extract individual emails, can I use the IS_EMAIL validator to validate