Ed Leafe wrote:
On Jan 12, 2006, at 1:10 PM, Paul McNett wrote:
This seems to fix the compile errors for cdxml files on Windows.
What would happen if they open up the .cdxml file in Notepad or any
other Windows editor, and edit the file? Won't it change the line endings?
Honestly, I have no idea. Where in your designer classes is the code that calls
dicttoxml() to save the method code? If we were to splitline() the method code
and then os.linesep.join() the lines back, and then re-revert my changes to
dicttoxml, perhaps that would do it?
I think it doesn't matter one iota what the line endings are, but Python's
compile() needs all the lines it is compiling to be the same. Obviously, we need
to find out for sure.
One thing I did test for was creating a test.cdxml/test.py on Windows, then
copying that file to Linux. It worked just fine.
--
Paul McNett
http://paulmcnett.com
http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev