> From: Logan Owen >Sent: Friday, December 21, 2012 5:29 AM > > Dave, > > Attached is a patch against 2.7c which adds support for > serializing/deserializing DateTime, Date, and base64 types. Let me > know if you have any feedback on it for changes I need to make. >
Logan - First, I apologize for being so slow to respond. Next, thanks so much for this patch. I've worked it into generateDS.py. It will be included in the next release (labeled as version 2.8a, likely). So, the next release should be able to parse and format xs:date and xs:dateTime. As a bit of excuse making, I'm so slow in part because I have made other changes that meant that some parts of your patch file had to be worked into the existing code by hand. I'm pretty sure that I've got it right; it passes my tests and my added test for xs:date and xs:dateTime. And, your patch file did save me lots of work; thanks so much for that. I've attached a new version in a separate email (so as not to push a large attachment into too many mail boxes). If you get a chance to try it, please let me know if it works as you would expect it to. Thanks again. Here is a description of the changes that will be in the next release, including yours. # ================================================================== 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. (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. # ================================================================== - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users