Skip to content

Commit

Permalink
get type info if available
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jan 3, 2017
1 parent 5748734 commit 7a73670
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions forms.py
Expand Up @@ -6,6 +6,7 @@
import subprocess
import json
from difflib import unified_diff
from pyxform.question_type_dictionary import QUESTION_TYPE_DICT as QTYPES


templates = resource_filename('wq.start', 'master_templates')
Expand Down Expand Up @@ -164,6 +165,8 @@ def process_fields(fields):
if field['type'] == 'repeat':
field['wq:many'] = True
process_fields(field['children'])
elif field['type'] in QTYPES:
field['type_info'] = QTYPES[field['type']]
else:
field['type_info'] = {'bind': {'type': field['type']}}

Expand Down

0 comments on commit 7a73670

Please sign in to comment.