diff options
author | drochner <drochner@pkgsrc.org> | 2002-10-01 17:21:39 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-10-01 17:21:39 +0000 |
commit | 0cd6bf1d37d4aced5d1eac4ed08e883a88684887 (patch) | |
tree | f8b6a7f441a0a1d1b7689f3c0f07f65b32a71df7 /net/py-soappy/patches/patch-aa | |
parent | b292a01dd6f34d048b72219d64c2050d3d3ba7df (diff) | |
download | pkgsrc-0cd6bf1d37d4aced5d1eac4ed08e883a88684887.tar.gz |
import SOAP.py from the "Web Services for Python" project, with some fixes
to make it work with Python-2.2 (extracted from py-google).
This is the third SOAP implementation in Python I've tried, and the
first which actually works.
Diffstat (limited to 'net/py-soappy/patches/patch-aa')
-rw-r--r-- | net/py-soappy/patches/patch-aa | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net/py-soappy/patches/patch-aa b/net/py-soappy/patches/patch-aa new file mode 100644 index 00000000000..b5f48c58b76 --- /dev/null +++ b/net/py-soappy/patches/patch-aa @@ -0,0 +1,62 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $ + +--- SOAP.py.orig Tue Oct 1 18:52:15 2002 ++++ SOAP.py Tue Oct 1 18:53:25 2002 +@@ -71,6 +71,18 @@ + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + ################################################################################ ++# ++# Additional changes: ++# 0.9.7.3 - 4/18/2002 - Mark Pilgrim (f8dy@diveintomark.org) ++# added dump_dict as alias for dump_dictionary for Python 2.2 compatibility ++# 0.9.7.2 - 4/12/2002 - Mark Pilgrim (f8dy@diveintomark.org) ++# fixed logic to unmarshal the value of "null" attributes ("true" or "1" ++# means true, others false) ++# 0.9.7.1 - 4/11/2002 - Mark Pilgrim (f8dy@diveintomark.org) ++# added "dump_str" as alias for "dump_string" for Python 2.2 compatibility ++# Between 2.1 and 2.2, type("").__name__ changed from "string" to "str" ++################################################################################ ++ + import xml.sax + import UserList + import base64 +@@ -89,9 +101,9 @@ + try: from M2Crypto import SSL + except: pass + +-ident = 'Id: SOAP.py,v 1.1.1.1 2001/06/27 21:36:12 cullman Exp ' ++ident = 'Id: SOAP.py,v 1.3 2002/04/18 19:19:45 f8dy Exp ' + +-__version__ = "0.9.7" ++__version__ = "0.9.7.3" + + # Platform hackery + +@@ -2097,7 +2109,9 @@ + null = attrs[(NS.XSI3, 'nil')] + del attrs[(NS.XSI3, 'nil')] + +- null = int(null) ++ #MAP 4/12/2002 - must also support "true" ++ #null = int(null) ++ null = (str(null).lower() in ['true', '1']) + + if null: + if len(cur) or \ +@@ -3102,6 +3116,7 @@ + typed, ns_map, self.genroot(ns_map), id) + + dump_unicode = dump_string ++ dump_str = dump_string # 4/12/2002 - MAP - for Python 2.2 + + def dump_None(self, obj, tag, typed = 0, ns_map = {}): + tag = tag or self.gentag() +@@ -3214,6 +3229,7 @@ + self.dump(v, k, 1, ns_map) + + self.out += '</%s>\n' % tag ++ dump_dict = dump_dictionary # 4/18/2002 - MAP - for Python 2.2 + + def dump_instance(self, obj, tag, typed = 1, ns_map = {}): + if not tag: |