the correct is: requires=IS_IN_SET(['Only one option ']))
2017-04-04 5:16 GMT-03:00 Kenneth <[email protected]>: > Hi, > > yesterday I did a yum update on my CentOS server and today I'm getting > errors on rows using IS_IN_SET? > > I'm using Python 2.6 for web2py and that one was not updated. I know a lot > was updated but not exactly what, didn't pay much attention to it. If I > comment out rows having IS_IN_SET the app works. web2py was neither > updated. > > This is the row that gives error: > > Field('accept_terms', widget=SQLFORM.widgets.checkboxes.widget, > requires=IS_IN_SET({'Only one option '})), > > And error is: > > SyntaxError: invalid syntax > > Anyone had problems like this? > > > Kenneth > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

