Skip to content

Commit

Permalink
Only colander.Mapping() create new tabs, other types with
Browse files Browse the repository at this point in the history
children do not anymore.
  • Loading branch information
nightmarebadger committed Jul 24, 2013
1 parent 09936c1 commit 6c19f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deform_bootstrap/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from colander import Mapping

def tabifyForm(form):
"""
Expand All @@ -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,
Expand Down

0 comments on commit 6c19f5b

Please sign in to comment.