> From: Timo Sugliani

> Sent: Fri, February 11, 2011 3:34:25 AM

> Hi Dave,
> 
> I'm currently trying your generateDS, seems to be perfect for what i'm
> trying to achieve, but I can't make it work, could you lend me some
> help ?
> 
> I've used generateDS on the vCloud Api schema XSD files
> (master/master.xsd) to generate a vCloudApi.py file, that seems to
> work fine, but after when I try to use it I'm having issues.
> 
> Just tried this : python vCloudApi.py to see what it outputs and I get :
> 
> tsugliani@mint ~/Desktop/test $ python vCloudApi.py
> Traceback (most recent call last):
>   File "vCloudApi.py", line 10981, in <module>
>     class Caption(cimString):
> NameError: name 'cimString' is not defined
> 
> Is this normal ? (I've attached the schemas and the output file I got
> from generateDS but my python knowledge is limited :'( )
> 

Timo -

Good to hear from you.

No that's not normal.  It's definitely a problem.

I did a little investigating.  I cannot find the definition of
cimString in the vCloud XML schema.  I'm guessing that it's
intended to be defined as a xs:simpleType that is a restriction on
xs:string.

When I add this code near the bottom of vcloud.xsd:

    <xs:simpleType name="cimString">
        <xs:restriction base="xs:string">
        </xs:restriction>
    </xs:simpleType>

then I can generate a module that I can successfully import in
Python.

I suspect that this is not the correct fix.  There is likely
something that I don't understand.  But, that's about the best I
can do.  Perhaps it will do as a temporary fix until we can learn
more about this problem.

However, I found this mention of a vCloud Python SDK:

    http://www.vmware.com/company/news/releases/vcloud-api.html

I was not able to find the implementation of this SDK for Python. 
Still, when (and if) it does become available, I wonder if you'd be
better off with that official support.

By the way, if you have any XML instance documents that satisfy
this vCloud schema, could you either send them to me or send me a
URL pointing to a site where I could find them.  That would help me
do some additional testing.

Hope this helps a bit.

- Dave


 -- 

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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to