Hello,

My first usage of generateDS.py and I couldn't find a repo to browse
so don't know if this is a known issue.

If you have something like: (from
http://www.khronos.org/files/collada_schema_1_5)
--snip--
        <xs:complexType name="technique_type">

                --snip--
                <xs:sequence>

                        <xs:any namespace="##any" processContents="lax" 
minOccurs="0"
maxOccurs="unbounded"/>

                </xs:sequence>

                <xs:attribute name="profile" type="xs:NMTOKEN" use="required">

                        --snip--
                </xs:attribute>

        </xs:complexType>
--snip--

generateBuildStandard() doesn't do a check for 'if hasChildren==0'
before spitting out the code for buildChildren so you end up with
something that looks like (well, exactly like) this:

    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
        else:
            objs_ = self.gds_build_any(node, 'technique_type')
            if objs_ is not None:
                self.add_anytypeobjs_(objs_)

Simple fix really...

Thanks,
Dan

------------------------------------------------------------------------------
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
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to