> From: Jonas Fietz <d...@geekig.de> > To: generateds-users@lists.sourceforge.net > Sent: Mon, August 16, 2010 8:33:08 AM > Subject: [Generateds-users] NameError: global name 'valueOf_' is not defined >
> > Hi, > > first of all, great piece of software, it looks like this will save > me a lot of work. Jonas - Good to hear from you. Thanks for the positive comment. That helps keep me working on this. > I am currently writing a small diving log software, which I would > like to be able to export to UDDF, the Universal Dive Data Format > (http://uddf-xsd.sourceforge.net/uddf-schema-documentation/). > > I generated my root classes with something like this: > > generateDS.py -o test1.py -s test2.py -a > "xmlns:uddf=\"http://www.streit.cc/uddf\"" --root-element=uddfType > uddf.xsd > > > When I try to instantiate uddfTypeSub, I get the following backtrace: > > File "/home/data/programming/pydivelog/ui/mainwindow.py", line 23, > in __init__ > self.diveData = uddfTypeSub() > File "/home/data/programming/pydivelog/model/test2.py", line 90, > in __init__ > super(uddfTypeSub, self).__init__(id, version, generator, diver, > divesite, gasdefinitions, profiledata, tablegeneration, divetrip, > divecomputercontrol, ) > File "/home/data/programming/pydivelog/model/test1.py", line 467, > in __init__ > super(uddfType, self).__init__(valueOf_, mixedclass_, content_, ) > NameError: global name 'valueOf_' is not defined > I copied the schema from the UDDF Web site. And, I was able to reproduce the error you found. Give me a day or so to work on this, and I'll see what I can do. By the way, could you email me the complete schema, or provide a link to the download. I could not figure out how to download it from http://uddf-xsd.sourceforge.net, so I had to do a copy-and-paste from the documentation. I might have introduced some errors by doing that. Is there some reason they don't provide a download link for the schema? Thanks for help. More later. - Dave [snip] -- Dave Kuhlman http://www.rexx.com/~dkuhlman ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users