[Pyobjc-dev] [ pyobjc-Bugs-769443 ] PyObCTools.Conversion inserts NSNulls into generated plists
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-07-11 03:13:31
|
Bugs item #769443, was opened at 2003-07-10 20:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=769443&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: PyObCTools.Conversion inserts NSNulls into generated plists Initial Comment: Conversion.py's propertyListFromPythonCollection converts None into NSNull. However, NSNull isn't a property list type, so the resulting property list is invalid for archiving. The best way to handle None is best defined by the user (empty string, empty data, 0, etc) so the best fix is probably just to comment out the lines that handle None. This makes the conversion helper function convert None. The lines are the two starting at 46 of PyObjCTools/ Conversion.py, elif aPyCollection is None: return NSNull.null() py...@sa... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=769443&group_id=14534 |