Hi,
I just tried 2.7a with some schemas from dmtf.org and it started
producing classes with broken if/else conditions. 2.6a doesn't appear to
have this problem. Is there some new option that I'm missing?
Command:
.../generateDS-2.7a/generateDS.py -o ovfenvelope.py dsp8023_1.1.xsd
Broken Auto-generated Code:
def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
else:
objs_ = self.gds_build_any(node, 'File_Type')
if objs_ is not None:
self.add_anytypeobjs_(objs_)
Schema used:
The main schema: http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.xsd
Supporting schemas:
http://schemas.dmtf.org/ovf/environment/1/dsp8027_1.1.xsd
http://schemas.dmtf.org/wbem/wscim/1/common.xsd
http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd
http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd
Cheers,
Keith
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users