Dan -
I believe that I was working on and fixed that one today. A patched version is here: http://www.rexx.com/~dkuhlman/generateDS-2.7b.tar.gz Let me know if this does not fix that problem you spotted. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ----- Original Message ----- > From: Dan Eicher <d...@trollwerks.org> > To: generateds-users@lists.sourceforge.net > Cc: > Sent: Friday, November 25, 2011 7:23 PM > Subject: [Generateds-users] Bug in generateBuildStandard() > > 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 > ------------------------------------------------------------------------------ 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