There is a new version of generateDS.py -- version 2.33.11

This release contains quite a few changes.

There are more notes in the read-me.  See below.

You can find it here:

- Python Package Index -- http://pypi.python.org/pypi/generateDS/
- Bitbucket -- For those of you who prefer using Mercurial, there is
  also a Mercurial repository at Bitbucket:
  https://bitbucket.org/dkuhlman/generateds
- Source Forge -- http://sourceforge.net/projects/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

From the README:

# =========================================================

Version 2.33.11 (10/02/2019)

- Added ability to generate a validate method ("obj.validate_") in
  each complex type class using the "--export" command line option
  (for example, --export="write validate").

Version 2.33.10 (10/01/2019)

- Modification to generated validator methods so that they return
  True or False: True means no validator warning messages issued;
  False means that there was at least one validator error and a
  message was issued.

Version 2.33.9 (09/30/2019)

- Fixes for simple type validation -- Removed use of the Python
  ``warnings`` module.  Added a "collector" class to generated
  modules.  Validation messages are added to this collector.  After
  parsing and building, these messages can be optionally written to
  stderr.  The generated parse functions (``parse``, ``parseEtree``,
  etc.) do this.  The collector class can be optionally replaced by
  an imported module.

Version 2.33.8 (09/26/2019)

- Fix to generation of ``Enum`` classes.  Added backslash escape to
  single quotes in enumeration values.  Thanks to Shane Rigby for
  catching and reporting this.

Version 2.33.7 (09/22/2019)

- Added ``xs:NCName`` and ``xs:QName`` to list of string types so
  that we treat them as strings.  Thanks to David Milner for
  catching and reporting this.

Version 2.33.6 (09/20/2019)

- Modified the type check in generated simple type validation
  methods so that we exit immediately if the test fails.

- Modification to generated simple type validation methods for
  enumeration restrictions: (1) converted items in the enumation to
  the target type; (2) generated simpler inclusion test using the
  Python ``in`` operator.

Version 2.33.5 (09/19/2019)

- Patch to handling of CDATA.  Thanks to huynhlv_54 for this fix.
  See his pull request at Bitbucket.

- Modified definition of regular expression ``PRESERVE_CDATA_TAGS_PAT``
  (added flag ``re_.DOTALL``) so that it will capture CDATA
  containing a new line.

- Another fix to generation of simple type validation methods.  This
  one enables us to handle simple types whose name includes a name
  space prefix.

Version 2.33.4 (09/17/2019)

- Added type test to generated simple type validation methods.

Version 2.33.3 (09/13/2019)

- Fix to validation test on ``simpleType`` restriction
  ``totalDigits``.  Thanks to Buğra Gedik for catching this.

- Fix to parsing of simple types that are restrictions on float and
  decimal when they are used as attributes.  We need to convert them
  to Python numeric types.

- Fixed capture (build) of float types so that they use
  gds_parse_float.

- Fixed capture (build) of integer types so that they use
  gds_parse_integer.

- Fixes so that binary strings ("b'xxx'") are not displayed in
  validation warning messages.

Version 2.33.2 (09/04/2019)

- Added default hash method (__hash__) from class ``object``.
  Thanks to Mustafa Şenol Coşar and Henrique Andrade for guidance
  with this.

- When run under Python 3, ``generateDS.py`` was generating binary
  strings in MemberSpec.  Changed to produce plain strings.  Thanks
  again to Mustafa and Henrique.

- Validator methods generated by gDS caused an exception under
  Python 2 when the string being checked contained a non-ascii
  character.  The generated code contained an unnecessary cast
  (``str(xxx)``).  Removed the cast.  Thanks again to Mustafa for
  reporting and helping with this.

Version 2.33.1 (07/08/2019)

- Fix so that, for command line option ``--disable-xml``, we also
  disable the use of ``etree_`` in ``GeneratedsSuper.gds_build_any``.
  Thanks to Mustafa Şenol Coşar for identifying this issue.

# =========================================================

--
Dave Kuhlman
http://www.davekuhlman.org



_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to