[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
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 On 3月29日, 下午9时33分, hywang why00...@163.com wrote: ---model file is like this -

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
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

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 8:33 am, 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)), Using this last string from your IS_IN_SET example (I hope my copy/

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. On Mar 29, 10:04 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 29, 8:33 am, hywang why00...@163.com wrote: ---model file is like this -

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 10:54 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. For example, looking at http://docs.python.org/library/codecs.html#standard-encodings and searching for

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
thanks for your kindly help. On 3月30日, 上午1时47分, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 29, 10:54 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. For

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
Rewrite IS_IN_SET, everything is ok. But I don't know how to submit a branch . class IS_IN_SET(Validator): def __init__( self, theset, labels=None, error_message='value not allowed', multiple=False, zero='', sort=False, ):