There is a new version of generateDS.py -- version 2.12e.
**Caution** -- May break some existing code. This version changes
the interface generated for classes that have children that are
lists (maxOccurs="unbounded"). The names of the "insert" method
has been changed to "replace_xxx_at", and a method
"insert_xxx_at" has been added. Please see the generated code.
I changed the names so that any code that uses the old interface
will throw an exception rather than slip by hiding an undetected
bug.
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
Below are a few notes and details from the README.
If you have comments, suggestions, or problems, please send them
along.
- Dave
# =========================================================
Version 2.12e (06/16/2014)
- Fix for formatting error. Thanks to Nikolay Lavrov for catching
this and for providing a fix.
- Fix to gds_parse_datetime(). The Python datetime module's
datetime object uses microseconds, but xs:dateTime uses fractions
of a second (e.g. 0.123). Converted from decimal fraction to
microseconds. Thanks to Mikki Weesenaar for catching this.
- Modified behavior and names for generated method insert_xxx(which
are generated when, e.g., maxOccurs="unbounded"), so that now we
generate insert_xxx_at and replace_xxx_at. Thanks to Bart
Wagenaar for pointing out this deviation from Pythonic style.
- Function transitiveClosure in generateDS.py was susceptible to
infinite looping. This seemed to occur when a substitutionGroup
contains a member with the same name as the head of the
substitutionGroup (but in a different namespace?). Added a test
to stop the recursion when this occurs. Thanks to Stuart Chalk
for finding and reporting this.
- Added explanation to the documentation explaining how the source
distribution (generateDS-x.xxy.tar.gz or Bitbucket) is needed for
use of the Django model generation capability.
# =========================================================
--
Dave Kuhlman
http://www.davekuhlman.org
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users