Skip to content

Commit

Permalink
Merge pull request #67 from nafundi/feature/no-geo-hints
Browse files Browse the repository at this point in the history
We should not add default hints into forms
  • Loading branch information
dorey committed May 23, 2016
2 parents e33e260 + 0ea97dc commit 2c7421a
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 15 deletions.
12 changes: 4 additions & 8 deletions pyxform/question_type_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,26 +381,23 @@ def generate_new_dict():
},
"bind": {
"type": "geopoint"
},
"hint": "GPS coordinates can only be collected when outside."
}
},
"geoshape": {
"control": {
"tag": "input"
},
"bind": {
"type": "geoshape"
},
"hint": "GPS coordinates can only be collected when outside."
}
},
"geotrace": {
"control": {
"tag": "input"
},
"bind": {
"type": "geotrace"
},
"hint": "GPS coordinates can only be collected when outside."
}
},
"select multiple from": {
"control": {
Expand Down Expand Up @@ -542,8 +539,7 @@ def generate_new_dict():
},
"bind": {
"type": "geopoint"
},
"hint": "GPS coordinates can only be collected when outside."
}
},
"q date": {
"control": {
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/example_xls/spec_test_expected_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,6 @@
</input>
<input ref="/xlsform_spec_test/everything/geopoint_test">
<label ref="jr:itext('/xlsform_spec_test/everything/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input ref="/xlsform_spec_test/everything/barcode_test">
<label ref="jr:itext('/xlsform_spec_test/everything/barcode_test:label')"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@
</input>
<input bodyAttribute="test" bodyAttribute2="test" ref="/attribute_columns_test/everything/geopoint_test">
<label ref="jr:itext('/attribute_columns_test/everything/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input bodyAttribute="test" bodyAttribute2="test" ref="/attribute_columns_test/everything/barcode_test">
<label ref="jr:itext('/attribute_columns_test/everything/barcode_test:label')"/>
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/test_expected_output/flat_xlsform_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@
</input>
<input ref="/flat_xlsform_test/geopoint_test">
<label ref="jr:itext('/flat_xlsform_test/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input ref="/flat_xlsform_test/barcode_test">
<label ref="jr:itext('/flat_xlsform_test/barcode_test:label')"/>
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/test_expected_output/xlsform_spec_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@
</input>
<input ref="/xlsform_spec_test/everything/geopoint_test">
<label ref="jr:itext('/xlsform_spec_test/everything/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input ref="/xlsform_spec_test/everything/barcode_test">
<label ref="jr:itext('/xlsform_spec_test/everything/barcode_test:label')"/>
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/test_output/attribute_columns_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@
</input>
<input bodyAttribute="test" bodyAttribute2="test" ref="/attribute_columns_test/everything/geopoint_test">
<label ref="jr:itext('/attribute_columns_test/everything/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input bodyAttribute="test" bodyAttribute2="test" ref="/attribute_columns_test/everything/barcode_test">
<label ref="jr:itext('/attribute_columns_test/everything/barcode_test:label')"/>
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/test_output/flat_xlsform_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@
</input>
<input ref="/flat_xlsform_test/geopoint_test">
<label ref="jr:itext('/flat_xlsform_test/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input ref="/flat_xlsform_test/barcode_test">
<label ref="jr:itext('/flat_xlsform_test/barcode_test:label')"/>
Expand Down
1 change: 0 additions & 1 deletion pyxform/tests/test_output/xlsform_spec_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@
</input>
<input ref="/xlsform_spec_test/everything/geopoint_test">
<label ref="jr:itext('/xlsform_spec_test/everything/geopoint_test:label')"/>
<hint>GPS coordinates can only be collected when outside.</hint>
</input>
<input ref="/xlsform_spec_test/everything/barcode_test">
<label ref="jr:itext('/xlsform_spec_test/everything/barcode_test:label')"/>
Expand Down

0 comments on commit 2c7421a

Please sign in to comment.