In web2py 2.14 and python 2.7 the following line of code
datatable_list = request.controller in ['network', 'calendar'] or request.function in ['search_group', 'search_supplier']
enabled me to do the following in an view:
{{if datatable_list:}}
DO SOMETHING
{{pass}}
In web2py 2.19 and python 3.7 this no longer works, does anyone know what
the alternative syntax is?
Kind regards,
Annet