Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread mostwanted
I wanna use a custom validator with a more relevant message, the message with IS_NOT_IN_DB() reads* "Value already in database or empty", *how can i change the message to what i want it to be? Mostw On Monday, May 20, 2019 at 9:36:32 AM UTC+2, Lovedie JC wrote: > > IS_NOT_IN_DB() > > On Mon, 2

Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread mostwanted
I wanna use a custom validator with a more relevant message, the message with IS_NOT_IN_DB() reads* "Value already in database or empty", *how can i change the message to what i want it to be? Mostwanted On Monday, May 20, 2019 at 9:36:32 AM UTC+2, Lovedie JC wrote: > > IS_NOT_IN_DB() > > On M

Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread Lovedie JC
IS_NOT_IN_DB() On Mon, 20 May 2019, 10:07 mostwanted wrote: > I have a custom form that allows users to save information on what they > are selling but the problem is that at times customers save similar items > names and during a search by buyers the buyer gets a duplicate name > results, what

Re: [web2py] Custom validator broken in 2.18.4, working in 2.17.2

2019-04-05 Thread Kevin Keller
Could you create a ticket for this please? https://github.com/web2py/web2py/issues Thanks! On Thu, Apr 4, 2019 at 10:52 PM David Manns wrote: > The table in question has a field: > > Field('Paiddate', 'date', requires = [IS_EMPTY_OR(IS_DATE()), > IS_EMPTY_OR(IS_MEMBERSHIP_YEAR_END())]), > >

RE: [web2py] CUSTOM VALIDATOR

2015-12-14 Thread Saifuddin Rangwala
Your file format should be dos (i.e. every line ends with \r\n). If you vim you should be able to execute :set ff=unix to fix this. Thanks. From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Laurent Lc Sent: 14 December 2015 22:06 To: web2py-users Subject: [we

Re: [web2py] custom validator error

2015-09-10 Thread Manuele Pesenti
Il 06/09/15 22:25, kvthie0 ha scritto: > Hello all, > > I'm learning the inner workings of web2py and try to make a custom > validator called IS_TIME_IN_RANGE (based on the IS_DATE_IN_RANGE > validator). I suggest you to test the validator in a web2py console before using it... in case of errors y