From 9d902b422659584d9a0c6d28b14f790eeeeaa455 Mon Sep 17 00:00:00 2001 From: helge Date: Thu, 24 Aug 2006 14:35:33 +0000 Subject: [PATCH] added support for XML-RPC 'nil' type git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1346 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-xml/XmlRpc/ChangeLog | 5 +++++ sope-xml/XmlRpc/NSObject+XmlRpc.m | 3 +++ sope-xml/XmlRpc/Version | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.5