On Jan 12, 2006, at 2:35 PM, Paul McNett wrote:

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.

OK, that seems more likely. Who cares what it is when it is in text form; when it is run, it needs to be consistent.

I've updated the part of the form class that reads in and compiles the code pieces to deal with this. I say leave xmltodict.py however is best for viewing text on a given platform, and let the form compiling code worry about getting it the way that Python wants it.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to