Hi,

I found a list of packages that was updated yesterday when I updated the 
server and python 2.6 was updated to newest 2.6 version, I'm guessing this 
is the reason why I'm getting the errors right now. But I don't understand 
why I'm getting errors. 


Kenneth


Den tisdag 4 april 2017 kl. 16:09:57 UTC+3 skrev Áureo Dias Neto:
>
> you do not need multiple = True? to use checkboxes
>
> 2017-04-04 10:07 GMT-03:00 Kenneth <[email protected] <javascript:>>:
>
>> 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] <javascript:>.
>> 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.

Reply via email to