> Andrew - > > I think I have a fix for the first problem. Here is a patch that you can > apply to > version 1.18a: > > # ================================================ > --- generateDS-1.18a/generateDS.py 2009-07-10 10:41:18.000000000 -0700 > +++ ../generateDS.py 2009-07-20 17:28:16.000000000 -0700 > @@ -1119,7 +1119,7 @@ > def endElement(self, name): > logging.debug("End element: %s" % (name)) > logging.debug("End element stack: %d" % (len(self.stack))) > - if name == SimpleTypeType and self.inSimpleType: > + if name == SimpleTypeType: # and self.inSimpleType: > self.inSimpleType = 0 > if self.inAttribute: > pass > # ================================================ > > This change enables me to generate code from jpdl-3.2.xsd. It passes my > other tests. But, I do not have an instance doc for your schema, > so you will have to tell me how well the generated code works. > I made the change on my side to see what would happen, and I noticed that the task element on line 335 has an attribute with the type priorityType with a default value. When I create an object of the task class in the super class, the priorityType does not contain the default value and has no ties to the priorityType itself that is provided in the xsd.
Is there a painless solution to the missing default value? Should there not be some kind of list of the allowed values in the specific priorityType? Sample code ======== import jpdl_super as jpdl task = jpdl.task() print(task.priorityType) # notice the value is None dir(jpdl) # No mention of priorityType, where'd it go? :P Thank you for your time, Andrew Dorrycott Confidentiality Notice: This e-mail message (including any attached or embedded documents) is intended for the exclusive and confidential use of the individual or entity to which this message is addressed, and unless otherwise expressly indicated, is confidential and privileged information of Rackspace. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at ab...@rackspace.com, and delete the original message. Your cooperation is appreciated. ------------------------------------------------------------------------------ _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users