datatable_list = request.controller in ['network', 'calendar'] True or False

13 views
Skip to first unread message

Annet

unread,
Jun 2, 2020, 5:40:40 PM6/2/20
to web2py-users
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
Reply all
Reply to author
Forward
0 new messages