Closed esmail closed 9 years ago
Main repo for pyxform is now
Http://Github.com/xlsform/pyxform On Oct 15, 2014 8:10 PM, "Esmail" notifications@github.com wrote:
Xlsform groups export
You can merge this Pull Request by running
git pull https://github.com/kobotoolbox/pyxform xlsform_groups_export
Or view, comment on, or merge it at:
https://github.com/SEL-Columbia/pyxform/pull/125 Commit Summary
- Typo in 'XFormToDict()'.
- Fix 'xform2json' to support single-question surveys (for testing purposes).
- Added more tests.
- Implement exporting surveys to XLSForms (in XLS or CSV format).
- Use pre-defined constants in spreadsheet export code.
- Created convenience functions for creating 'Survey' objects from various file formats.
- Added tests for spreadsheet exporting.
- Added support for Unicode in exported CSVs. Improved spreadsheet export testing.
- Allow exported XLSForms to be directly imported into KoBoForm.
- Allow exporting non-multiple-choice surveys to spreadsheets.
- Forgotten testing fixture.
- Adding constants and refactoring for more consistent use of constants.
- Utilize reuse in tracking question types.
- Readability refactoring.
- Provide XForm and XLSForm question/data type constants.
- Allow (old KF) types including those prefixed with 'xsd:'.
- Added limited support for XForms whose titles include translations.
- Export translations in XLSForms.
- Merge branch 'survey_to_spreadsheet' into import_old_kf
- Error message typo.
- Broader use of constants in 'aliases'.
- Broader use of constants in 'question_type_dictionary.py'.
- Allow import of XForms containing multiple-choice questions with only one option.
- Added and rearranged constants.
- Gracefully fail when attempting to export cascading-select questions to an XLSForm.
- Retain questions' 'itemset' when importing from XForm.
- Retain form titles (instead of using "None") when importing from XLSForm.
- Mass application of constants (through 'BIND').
- Reorganized XLSForm export tests and fixtures.
- Modified the multiple-choice aliases and added methods for de-aliasing question types to XForm and XLSForm standard names.
- Added tests to ensure all question types can be successfully imported from XForm and exported to XLSForm for both KoBoForm versions 1 and 2.
- Refactored survey to XLSForm testing.
- Added testing for importing translations from XForms and exporting them to XLSForms.
- Reorganize cascading-select question detection.
- Test that attempting to export cascading select options fails and inserts warnings into the user's form.
- simple example of a warning which can be passed back to a user
- Merge commit '4b49dcb2772dff64e3ea8be037a2971e98df0daa' into warnings_dataflow
- Instrumented optional collection of warnings generated during survey imports in 'Survey.to_X' methods.
- Optionally keep warnings generated when exporting surveys to XLSForms.
- Oops RE: "Instrumented optional collection of warnings generated during survey imports in 'Survey.to_X' methods.".
- Warn on XForm survey imports.
- Test warning when attempting to export cascading-select questions to XLSForm.
- Minor tweak to 'xform2json.py'.
- Support importing XForms from file-like objects in addition to file paths.
- Support importing XLSForms from file-like objects in addition to file paths.
- Missed modifications from two commits back...
- Support exporting XLSForms and XForms into 'StringIO' objects.
- Support exporting 'Survey' objects to XForm-formatted 'StringIO'.
- Optimizations and documentation fixes in
survey_to_xlsform.py
.- Tests for new XForm import and export interfaces. Test for XForm import warning message.
- Temporary testing fix for failing XLS import/export test.
- Use '\' as the escape character when exporting to CSV.
- Added new export format 'ssjson' (JSON-formatted XLSForm).
- Fixed exported CSV format to match what KoBoForm expects.
- Make exporting CSVs to KoBoForm's preferred format optional so CSV exports are otherwise invertible.
- Warn about non-standard types upon importing XForms.
- Tests and warnings for exporting groups to XLSForm.
File Changes
- M pyxform/aliases.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-0 (267)
- M pyxform/builder.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-1 (130)
- M pyxform/constants.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-2 (150)
- M pyxform/question.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-3 (13)
- M pyxform/question_type_dictionary.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-4 (1141)
- M pyxform/section.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-5 (17)
- M pyxform/survey.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-6 (100)
- M pyxform/survey_element.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-7 (33)
- A pyxform/survey_from.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-8 (75)
- A pyxform/survey_to_xlsform.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-9 (361)
- A pyxform/tests/example_xforms/all_question_types_survey_kf1.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-10 (153)
- A pyxform/tests/example_xforms/all_question_types_survey_kf1_translations_inserted.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-11 (206)
- A pyxform/tests/example_xforms/all_question_types_survey_kf2.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-12 (111)
- A pyxform/tests/example_xforms/multiple_select_question_survey.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-13 (40)
- A pyxform/tests/example_xforms/single_select_many_survey.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-14 (27)
- A pyxform/tests/example_xforms/single_select_one_survey.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-15 (27)
- A pyxform/tests/example_xforms/unicode_survey.xml https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-16 (27)
- A pyxform/tests/example_xls/new_cascading_select_xlsform.org.xlsx https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-17 (0)
- A pyxform/tests/test_import_xform.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-18 (162)
- A pyxform/tests/test_survey_to_xlsform.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-19 (295)
- M pyxform/tests/xform2json_test.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-20 (30)
- M pyxform/xform2json.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-21 (293)
- M pyxform/xls2json.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-22 (122)
- M pyxform/xls2json_backends.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-23 (32)
- M pyxform/xls2json_old.py https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-24 (4)
- M requirements.pip https://github.com/SEL-Columbia/pyxform/pull/125/files#diff-25 (1)
Patch Links:
- https://github.com/SEL-Columbia/pyxform/pull/125.patch
- https://github.com/SEL-Columbia/pyxform/pull/125.diff
— Reply to this email directly or view it on GitHub https://github.com/SEL-Columbia/pyxform/pull/125.
My mistake; I meant to pull this into the KoBo repo.
Thanks for the info though; hoping to push this upstream soon.
Xlsform groups export