Ed Leafe wrote: > On Jan 17, 2007, at 9:38 AM, Uwe Grauer wrote: > >>> Added question: Is there a utility that converts cdxml files to >>> python >>> wxPthon code and allows me to save the code to a file? >> Yes, that would be one of the greatest things!!! > > It's done every time you run a cdxml form. Look at the CLASSTEXT.py > files that get generated. Of course, due to the vagaries of Python's > dynamic class generation, the code associated with the object is > broken out into a separate file in your temp directory, but the code > for the form's structure is in CLASSTEXT.py. > > The dabo.lib.DesignerXmlConverter is the program that accomplishes > this conversion, but bear in mind: the code is far from obvious. It > took me several months before I could get it to work, and the code it > generates is not optimized at all, as it has to be generic enough to > handle anything. > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com >
I know that. But the code which is generated is quite different from how you would code it by hand. So you can't rely on the generated code if you wanted to maintain it afterwards. This would be a great thing to have. I don't know how often i had to recreate a form in Classdesigner just because it was screwed up. Don't mind - this would really be something to have after the dabo framework is matured enough and doesn't change the api any more. Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
