day_str = ('Sun', 'Mon', 'Tues', 'wed')
Field('days', type='list:string',,requires=IS_IN_SET ((day_str),
multiple=True),widget=lambda field, value:
SQLFORM.widgets.multiple.widget(field, value, size=3, style='divs',
label=True)),
/view
{{=my_table.days}}
One example
On Monday, May 9, 2016 at 11:35:20 AM UTC-4, Anthony wrote:
>
> Please show your code.
>
> On Sunday, May 8, 2016 at 7:15:22 PM UTC-4, [email protected]
> <javascript:> wrote:
>>
>> What would be the most efficient way to take out html tag for IS_IN_SET
>> (str) which outputs
>>
>> ['my string']
>>
>>
>> Want to display.
>>
>>
>> my string
>>
>>
>> Is re.compile and re.sub are the only options? XML, sanitize =True
>> doesn't work. Thanks in advance.
>>
>>
--
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.