[web2py] Re: issue with list of validators

2010-11-07 Thread mdipierro
No. there is a single error_message On Nov 7, 4:00 pm, Marco Prosperi wrote: > thank you, but is there any hook to customize the error message if I > don't choose an item (sorry, it was IS_IN_SET, not IS_IN_LIST)? > > On 7 Nov, 17:30, mdipierro wrote: > > > requires=[IS_NOT_EMPTY(error_message=T

[web2py] Re: issue with list of validators

2010-11-07 Thread Marco Prosperi
thank you, but is there any hook to customize the error message if I don't choose an item (sorry, it was IS_IN_SET, not IS_IN_LIST)? On 7 Nov, 17:30, mdipierro wrote: > requires=[IS_NOT_EMPTY(error_message=T('my > custom message')),IS_IN_LIST(['first','second'])] > > should be just > > requires

[web2py] Re: issue with list of validators

2010-11-07 Thread mdipierro
requires=[IS_NOT_EMPTY(error_message=T('my custom message')),IS_IN_LIST(['first','second'])] should be just requires=IS_IN_LIST(['first','second']) if you require the value to be in a list, it cannot be empty. This will give you the dropdown. On Nov 7, 9:31 am, Marco Prosperi wrote: > hi all,