SEL-Columbia / pyxform

A Python package to create XForms for ODK Collect.
21 stars 9 forks source link

Closes #1313, #1341 #125

Closed esmail closed 9 years ago

esmail commented 9 years ago

Xlsform groups export

mberg commented 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

Patch Links:

— Reply to this email directly or view it on GitHub https://github.com/SEL-Columbia/pyxform/pull/125.

esmail commented 9 years ago

My mistake; I meant to pull this into the KoBo repo.

Thanks for the info though; hoping to push this upstream soon.