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

-- 



Reply via email to