From: helge Date: Thu, 24 Aug 2006 14:35:33 +0000 (+0000) Subject: added support for XML-RPC 'nil' type X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d902b422659584d9a0c6d28b14f790eeeeaa455;p=sope added support for XML-RPC 'nil' type git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1346 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-xml/XmlRpc/ChangeLog b/sope-xml/XmlRpc/ChangeLog index 3ba1f8a2..ec7086bb 100644 --- a/sope-xml/XmlRpc/ChangeLog +++ b/sope-xml/XmlRpc/ChangeLog @@ -1,3 +1,8 @@ +2006-08-24 Helge Hess + + * 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 * fixed gcc 4.1 warnings, use %p for pointer formats (v4.5.28) diff --git a/sope-xml/XmlRpc/NSObject+XmlRpc.m b/sope-xml/XmlRpc/NSObject+XmlRpc.m index f5cc35fc..211f980e 100644 --- a/sope-xml/XmlRpc/NSObject+XmlRpc.m +++ b/sope-xml/XmlRpc/NSObject+XmlRpc.m @@ -137,6 +137,9 @@ 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: diff --git a/sope-xml/XmlRpc/Version b/sope-xml/XmlRpc/Version index 59de9cb5..55c3abf2 100644 --- a/sope-xml/XmlRpc/Version +++ b/sope-xml/XmlRpc/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=28 +SUBMINOR_VERSION:=29