diff --git a/strasbourg/reprise.py b/strasbourg/reprise.py index 7b72d44..af08802 100644 --- a/strasbourg/reprise.py +++ b/strasbourg/reprise.py @@ -56,6 +56,13 @@ first_fieldset = True def process_children(node): global field_id, first_fieldset + if 'repeat' in node.attrib: + formdef.fields.append(fields.CommentField(id=str(field_id), + type='comment', + label='
!!! Attention info qui peut se répéter plusieurs fois sur le formulaire d\'origine. (tableau de longueur libre possible ?)
')) + print '!!! fieldset repeat' + field_id += 1 + children_nodes = node.getchildren() for field_node in children_nodes: field_id += 1 @@ -68,8 +75,6 @@ def process_children(node): formdef.fields.append(fields.CommentField(id=str(field_id), type='comment', label='