> From: Koen Smets

> Sent: Wed, December 1, 2010 3:20:54 AM

> Dear Dave,
> 
> First of all a BIG thanks for the nice work you've put into
> generateDS creating, it will definitely save me a lot of time and
> hazard.

Koen -

Super.  I'm glad gDS is helpful to you.  Thanks for letting me
know about that.

> 
> However, while trying to convert a more elaborated xsd file, I
> discovered a bug.
> 
> The problem is that if a class has a '-' in its name, this get
> properly renamed to '_', but not for the subclasses.  For example I
> have the following structure, note is a subclass from
> calendar-item.  Both classes calendar_item and note are generated,
> but note is extended from calendar-item in stead of calendar_item.

Thanks for telling me about this bug.

I've been able to reproduce this error.

> 
> I don't have time to create go through your code and submit a
> patch, but perhapse you can change it in a future release.  The fix
> should be quite easy, as only 2 lines need to be changed:
> 
> class note(calendar-item) -> class note(calendar_item)
> superclass = calendar-item -> superclass = calendar_item

Your description made it easy to find and fix.  Thanks.

> 
> Thanks in advance!

You're welcome.

I've uploaded a patched version of generateDS.py.   You can find it here:

    http://www.rexx.com/~dkuhlman/generateDS.py

Please let me know if this fixes the problem for you.  This version has
several other fixes that I have not yet released.  Those changes involve
restrictions, that is the use of something like:

    <xs:restriction base="SomeOtherType">

So, if that, or anything else it does, causes a problem, please
tell me about it.

- Dave


 -- 

Dave Kuhlman
http://www.rexx.com/~dkuhlman
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to