There is a new version of generateDS.py with a few fixes. 
Here are the notes from the README:

    Version 2.1c (8/8/2010)
      * Fix to functions parse, parseString, and parseLiteral so that
        they start the build with the correct root class.  I believe
        that there yet is another case that this does not handle,
        specifically when element name is different from class/type
        name and the element definition is not the first definition in
        the schema.
      * Fix to generation of build method for derived elements (i.e.
        elements with "extension base=".  These were being treated as
        if they were abstract, i.e. 'abstract="true"'.
      * Fix to generation of the call to the superclass constructor in
        the generated subclass module.  Prevented the generation of
        duplicate arguments.
      * Added a comment to the generated superclass module at the top
        that specifies the utf-8 source code encoding:
            # -*- coding: utf-8 -*- 

I'm a bit unsure about the change related to elements defined with
'abstract="true"'.  I've read what I can find on the Web about
abstract elements, but I'm still a bit mystified.  So, if anyone
has a schema that defines abstract elements, and if you try the new
version, please let me know have it works for you.

And, does anyone have any ideas about whether adding the encoding
to the top of the generated (super) module file will cause
any problems?  There is a user who had a schema that made
that necessary.

You can find it in the usual places:

- Python Package Index -- http://pypi.python.org/pypi/generateDS/
- Source Forge -- http://sourceforge.net/projects/generateds/
- My Web site --
- http://www.rexx.com/~dkuhlman/generateDS-2.1c.tar.gz

If you comments, suggestions, or problems, please send them along.

- Dave



 -- 


Dave Kuhlman
http://www.rexx.com/~dkuhlman


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to