There is a new version of generateDS.py -- version 2.29.3. See the notes below from the README for more details.
You can find it here: - Python Package Index -- http://pypi.python.org/pypi/generateDS/ - Source Forge -- http://sourceforge.net/projects/generateds/ - Bitbucket -- For those of you who prefer using Mercurial, there is also a Mercurial repository at Bitbucket: https://bitbucket.org/dkuhlman/generateds If you have comments, suggestions, or problems, please send them along. The email list is here: https://lists.sourceforge.net/lists/listinfo/generateds-users Dave # ========================================================= Version 2.29.3 (12/11/2017) - Resolved an issue with a type casting problem that occurs when a numeric default value is provided as default for an xsd:attribute. Normally attributes were being type casted at the constructor to a Python type if the types are one of the builtins. However attributes derived from a builtin type via xsd:simpleType definitions couldn't be casted to a base type and were being treated as strings. Refactored out the simple type resolution from the XsdElement class to a function so that we can reuse the same code for both elements and attributes. Thanks to Alim Gokkaya for fixing this and for providing a pull request. Version 2.29.2 (12/07/2017) - Fix for use of StringIO in generated subclass modules. Thanks to Rohan Dsa for alerting me on this. Version 2.29.1 (12/07/2017) - Fix to generation of code to export child elements that have default values. When the element's value is equal to the default value, the export of the element should be omitted only if the element is optional (i.e. minOccurs=0). Thanks to Andrii Iudin for reporting this. - Several modifications to use the `six` module as a cleaner way to smooth over differences between Python 2 and Python 3. - Added file generateds/django/README.txt containing instructions on running the Django code generation support. Thanks to Christian González for reporting problems with this and for providing information that helped understanding the source of the difficulties. Version 2.29.0 (11/28/2017) - Fixes to export of namespace prefixes for schemas that are imported. Thanks to Bob Barcklay for reporting this and for advise on fixes. # ========================================================= -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users