There is a new version of generateDS.py -- version 2.8a. There are quite a few changes to this version, and a good deal of code clean-up, too. Most of the changes are *additions* that should not affect your existing code. *However*, some might make a difference, so you should keep your old version around, just in case you need to fall back to it.
Here are a few notes and details from the README: # ========================================================= Version 2.8a (01/10/2013) * Fix to process_includes.py so as to remove the limitation on the number of unique names it can generate when raising anonymous types to the top level. Thanks to Daniel Browne for help with this. * Added support for multiple level attributeGroup, i.e. for attribute groups that themselves contain references to other attribute groups. Thanks to Harley Green for pointing out the need for this. Also added a unit test for attribute groups. * Added support for more date and time simple types, specifically gYear, gYearMonth, gMonth, gMonthDay, and gDay. Thanks to Nicholas Krasney for catching this. Added tests in the unit tests for these types. * Quite a bit of code clean-up with the help of the flake8 Python code checker. This is predominantly code cleanup that does not affect behavior, most commonly splitting lines that are longer than 80 characters across multiple lines for readability. (See: http://pypi.python.org/pypi/flake8 for info about the flake8 Python code checker. I use it with the Syntastic plugin for the Vim text editor.) * Added generation of a dictionary that maps element definition names to generated class names. Thanks to Elena Dolinin for the original work on this one. * Added support for xs:date and xs:dateTime. These are now captured as instances of class datetime.datetime from the Python standard library. They are parsed and exported with the help of that class and using methods gds_format_date, gds_format_datetime, gds_parse_date, and gds_parse_datetime in class GeneratedsSuper (which is part of the generated module). Logan Owen did the work on this. Thanks much to Logan for implementing this and contributing this patch. * Turned logging off. I did not realize that generateDS.py had been creating a log file (generateDS.log). Logging can be turned back on by modifying the logging calls near the top of generateDS.py. * Fixed exception that is thrown when the XML schema file (.xsd) only contains a simple type. Now, the output is generated, but it contains no data representation classes. Thanks to Daniel Browne for catching this. # ========================================================= You can find it here: - Python Package Index -- http://pypi.python.org/pypi/generateDS/ - Source Forge -- http://sourceforge.net/projects/generateds/ If you have comments, suggestions, or problems, please send them along. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users