I wrote in a hurry. Your code works for me with trunk. Can you try trunk? If still does not work, I will need a more complete example.
On Friday, 21 September 2012 21:48:37 UTC-5, Massimo Di Pierro wrote: > > I do not think so. Can you provide an example to reproduce the problem? > > On Friday, 21 September 2012 18:01:57 UTC-5, Luca wrote: >> >> I am using web2py 2.0.8 on a Mac. I defined the following controller: >> >> @auth.requires_login() >> def edit_members(): >> current_emails = ['[email protected]'] >> form = SQLFORM.factory(Field('members', 'list:string', >> default=current_emails, >> )) >> if form.process().accepted: >> <some code> >> else: >> session.flash = T('Some user emails were invalid.') >> return dict(form=form) >> >> I cannot get the form to validate. Moreover, quite often, web2py goes >> into a mode in which it uses 100% CPU, becomes unresponsive, and must be >> killed (force quit). >> So, there seems to be some bug in the validation of list:string fields in >> SQLFORM.factory produced forms. >> >> Luca >> >> --

