strasbourg: add warning about repeated parts
This commit is contained in:
parent
1652e35c5b
commit
5e64ec8b22
|
@ -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='<p><big>!!! Attention info qui peut se répéter plusieurs fois sur le formulaire d\'origine. (tableau de longueur libre possible ?)</big></p>'))
|
||||
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='<div>%s</div>' % fix_encoding(field_node.text)))
|
||||
continue
|
||||
if field_node.tag == 'fieldset':
|
||||
if 'repeat' in field_node.attrib:
|
||||
print '!!! fieldset repeat'
|
||||
try:
|
||||
if first_fieldset:
|
||||
first_fieldset = False
|
||||
|
|
Loading…
Reference in New Issue