From 6c19f5bad70754a82c2684b482c8fe265faa80a7 Mon Sep 17 00:00:00 2001 From: Natan Zabkar Date: Wed, 24 Jul 2013 02:09:30 +0200 Subject: [PATCH] Only colander.Mapping() create new tabs, other types with children do not anymore. --- deform_bootstrap/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deform_bootstrap/utils.py b/deform_bootstrap/utils.py index bd48db8..fd1292b 100644 --- a/deform_bootstrap/utils.py +++ b/deform_bootstrap/utils.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from colander import Mapping def tabifyForm(form): """ @@ -11,7 +12,7 @@ def tabifyForm(form): mappings = [] for i in form.children: - if i.children: + if type(i.typ) is Mapping: mappings.append({'title': i.title, 'name': i.name, 'children': i,