[issue14455] plistlib unable to read json and binary plist files

2013-04-01 Thread d9pouces
d9pouces added the comment: I just signed this agreement. Thanks for accepting this patch! -- ___ Python tracker <http://bugs.python.org/issue14455> ___ ___ Pytho

[issue14455] plistlib unable to read json and binary plist files

2012-07-14 Thread d9pouces
d9pouces added the comment: The plutil (Apple's command-line tool to convert plist files from a format to another) returns an error if you try to convert a XML plist with dates to JSON. -- ___ Python tracker <http://bugs.python.org/is

[issue14455] plistlib unable to read json and binary plist files

2012-04-08 Thread d9pouces
d9pouces added the comment: Here is the new patch, allowing read and write binary, json and xml plist files. It includes both the plistlib.py and test/test_plistlib.py patches. JSON format does not allow dates and data, so XML is used by default to write files. I use the json library to write

[issue14455] plistlib unable to read json and binary plist files

2012-04-06 Thread d9pouces
d9pouces added the comment: I'm working on a class, BinaryPlistParser, which allow to both read and write binary files. I've also added a parameter fmt to writePlist and readPlist, to specify the format ('json', 'xml1' or 'binary1', using XML by defa

[issue14455] plistlib unable to read json and binary plist files

2012-04-04 Thread d9pouces
d9pouces added the comment: storchaka > I'm trying to take care of your remarks. So, I'm working on a more object-oriented code, with both write and read functions. I just need to write some test cases. IMHO, we should add a new parameter to the writePlist function, to allow th

[issue14455] plistlib unable to read json and binary plist files

2012-03-30 Thread d9pouces
d9pouces added the comment: Here is the new patch. I assumed that you meant to use diff -c instead of the raw diff command. -- keywords: +patch Added file: http://bugs.python.org/file25076/context.diff ___ Python tracker <http://bugs.python.

[issue14455] plistlib unable to read json and binary plist files

2012-03-30 Thread d9pouces
New submission from d9pouces : Hi, Plist files have actually three flavors : XML ones, binary ones, and now (starting from Mac OS X 10.7 Lion) json one. The plistlib.readPlist function can only read XML plist files and thus cannot read binary and json ones. The binary format is open and