From aca49479276043ce9464164aa83b109757775bf1 Mon Sep 17 00:00:00 2001 From: Tim Nyborg Date: Fri, 19 Oct 2018 16:36:13 +0100 Subject: [PATCH] fix selectable breaking with custom formstyle the recently added elif results in a 'function is not iterable' exception if you have a custom formstyle function --- gluon/sqlhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 2243a7c2..923a1a90 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -3093,7 +3093,7 @@ class SQLFORM(FORM): if formstyle == 'bootstrap': # add space between buttons htmltable = FORM(htmltable, DIV(_class='form-actions', *inputs)) - elif 'bootstrap' in formstyle : # Same for bootstrap 3 & 4 + elif not callable(formstyle) and 'bootstrap' in formstyle: # Same for bootstrap 3 & 4 htmltable = FORM(htmltable, DIV(_class='form-group web2py_table_selectable_actions', *inputs)) else: htmltable = FORM(htmltable, *inputs)