>From: Béres Botond >Sent: Tuesday, May 31, 2011 2:05 AM > > Hi Dave, > > Thank you for your response and the updated generateDS.py file. > > Unfortunately it doesn't seem to fix the simpleType validator > problem, at least not when run on the full XSD. > But I've only tested it briefly, I'll try to give you some more info > as soon as I get the chance to test it in more detail, I haven't had > the time to do so yet. >
Botond - It seems to me that generateDS.py is generating the validator code we want. Let me try to make sure that we are looking at the same thing. When I generate using the full XML schema, I get class certificato containing the following code: class certificato(GeneratedsSuper): o o o def validate_varchar9(self, value): # Validate type varchar9, a restriction on None. pass o o o def buildChildren(self, child_, node, nodeName_, fromsubclass_=False): o o o elif nodeName_ == 'particella': particella_ = child_.text particella_ = self.gds_validate_string(particella_, node, 'particella') self.particella = particella_ self.validate_varchar9(self.particella) # validate type varchar9 o o o Isn't that what we want? Is your point that there is no code in the body of method validate_varchar9? If that's the problem, look here: http://www.rexx.com/~dkuhlman/generateDS.html#simpletype-and-validators and read the part about how to add code using the --validator-bodies command line option. Or, is there another element/child that is not being generated correctly? If so, which one? > I see you are using the MIT License, I presume then it's alright to > create an (unofficial) mirror of the CVS repository on Github, > to "play around" with it? Yes. That would be fine with me. And, if you make improvements, please let me know. And, thanks for working with me on the simpleType issue. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users