On Mar 29, 8:45 am, hywang <why00...@163.com> wrote: > There is something wrong with validators.py in line 289 > values = re.compile("[\w\-:]+").findall(str(value)) > if I change it with > values = value > everything is ok > > Maybe it's a bug
I do not know - but to help you along a little: See the description of \w on http://docs.python.org/library/re.html You can quickly reproduce this same effect (at least I did) with http://www.pythonregex.com/ Can you try this and see if it works: values = re.compile("[\w\-:]+", re.UNICODE).findall(str(value), re.UNICODE) Regards, - Yarko > > On 3月29日, 下午9时33分, hywang <why00...@163.com> wrote: > > > -------model file is like this --------------------- > > db.define_table('options_contain_chinease', > > Field('student_name', requires = IS_IN_SET(["Jim","小长","老李"], > > multiple=True)), > > ) > > db.options_contain_chinease.student_name.widget = > > CheckboxesWidget.widget > > > ------controller file is like this --------------------- > > def options_contain_chinease(): > > form = SQLFORM(db.options_contain_chinease) > > if form.accepts(request.vars, session): > > pass > > return dict(form=form) > > > if checked one item and submit, everything is ok, however, when > > checked more than one items and submit the form, an error will occur . > > Is it a bug ? > > > thanks ! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.