]> err.no Git - sope/commitdiff
added support for XML-RPC 'nil' type
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 24 Aug 2006 14:35:33 +0000 (14:35 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 24 Aug 2006 14:35:33 +0000 (14:35 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1346 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/XmlRpc/ChangeLog
sope-xml/XmlRpc/NSObject+XmlRpc.m
sope-xml/XmlRpc/Version

index 3ba1f8a2abf36497b959a8e50062d84aa6f054c1..ec7086bb426dccc9a96cbad92b78be7fcdd9374d 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-24  Helge Hess  <helge.hess@opengroupware.org>
+
+       * NSObject+XmlRpc.m: added support for 'nil' type as submitted by
+         xmlrpclib with the 'allow_none' option set (v4.5.29)
+
 2006-07-03  Helge Hess  <helge.hess@opengroupware.org>
 
        * fixed gcc 4.1 warnings, use %p for pointer formats (v4.5.28)
index f5cc35fc6795352be4fd894da59816da924d6b7a..211f980e4b159317719a297ff0f028624c4c2924 100644 (file)
   static NSDictionary *typeToClass = nil;
   Class ObjClass = Nil;
   id obj;
+
+  if ([@"nil" isEqualToString:_type]) /* Python with allow_none */
+    return nil;
   
   if (typeToClass == nil) {
     typeToClass = [[NSDictionary alloc] initWithObjectsAndKeys:
index 59de9cb5b8a326d7fb546efacdae06684348d203..55c3abf2988b494c16db54eec55d9c82a3eca105 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=28
+SUBMINOR_VERSION:=29