Yes, this is a known issue when applying IS_LIST_OF to list: type fields. 
Previously, you could not even use the IS_LIST_OF validator with list: 
fields -- we added support for that case but did not work out the 
displaying of errors on the form (which is a bit tricky given how the list: 
widget works). So, if you want to use that validator, you are responsible 
for explicitly checking for errors post validation and displaying the 
errors yourself (after a failed validation, the errors will be in 
form.errors, so you can pull them from there and decide how you want to 
show them on the form).

Anthony

On Friday, May 11, 2012 7:27:08 AM UTC-4, François Delpierre wrote:
>
> Hi,
>
> I have no error message when I wrongly fill a list with spaces / special 
> characters.
> However the validator works, as I need to respect it to update the record.
>
> db.define_table('parameter',
>     Field('allowed_users', type='list:string'),
>     )
> db.parameter.allowed_users.requires = IS_LIST_OF(IS_ALPHANUMERIC())
>
> # I first inserted a row with the default DB administration tool. But no 
> error message also there. 
>
> form = crud.update(db.parameter, 1, deletable=False)
>
> I did try quite everything already :
> - Redefining error_message at the IS_ALPHANUMERIC level or at the 
> IS_LISTOF.
> - defining the validator at the table level
> - Removing the "IS_LIST_OF"..
>
> But no success, it 's validating, but no error message displayed. This 
> then becomes quite unusable.
>

Reply via email to