> From: Nicholas B. Krasney
>Sent: Friday, November 23, 2012 11:00 PM
> 
> Hi there,
>
> I'm writing with a question about generateDS. Is this the right way
> to ask the question?
>
> It's had some trouble with a few types in a schema I'm using. For
> instance, when I try to use generated code (excerpt printed below),
> Python outputs an error on "NameError: global name 'xs_gYear' is not
> defined". The was generated with version 2.7c.
>
> Is there a preferred way to get around this exception, or should I
> edit the source manually?
>
> Thanks,

Nick -

The way to fix this is for me to add support for those built-in simple types
(gYear, gMonth, gYearMonth, etc).  I've done that, and I've attached
a version of generateDS.py that has that support.  It's in a separate email
so as not to stuff too much volume on the generateds-users list.

If and when you try it, could you please let me know whether it
works for you.  And, if there are other simple types that you need
added, let me know about that, too.

There are some other changes in this version, so perhaps you should
not throw away your old version until you've tried this one.

And, thanks, by the way, for motivating me to add this.

- Dave


--


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

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to