you do not need multiple = True? to use checkboxes
2017-04-04 10:07 GMT-03:00 Kenneth <[email protected]>:
> Hi,
>
> everything was wortking yesterday, so IS_IN_SET should be OK.
>
> Full traceback is (or do you need anymore of it):
>
> Traceback (most recent call last):
> File "/data/web2py/gluon/restricted.py", line 226, in restricted
> ccode = compile2(code, layer)
> File "/data/web2py/gluon/restricted.py", line 209, in compile2
> return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer,
> 'exec')
> File "/data/web2py/applications/bbfid/controllers/epiauth2.py", line
> 1186
> Field('accept_terms', widget=SQLFORM.widgets.checkboxes.widget,
> requires=IS_IN_SET({T('Get access')})),
>
> ^
> SyntaxError: invalid syntax
>
>
> Kenneth
>
> Den tisdag 4 april 2017 kl. 15:10:26 UTC+3 skrev Anthony:
>>
>> On Tuesday, April 4, 2017 at 7:05:25 AM UTC-4, Áureo Dias Neto wrote:
>>>
>>> the correct is:
>>>
>>> requires=IS_IN_SET(['Only one option ']))
>>>
>>>
>> IS_IN_SET should be able to take a Python set object rather than a list,
>> so {} vs. [] shouldn't be the issue.
>>
>> Anthony
>>
> --
> 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.