diff options
author | jortel <devnull@localhost> | 2010-01-28 22:47:26 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2010-01-28 22:47:26 +0000 |
commit | e801f036ab555010d616dc921a2d5a811297dbd5 (patch) | |
tree | 93665bd9a496d84f72c1334097f4d0363a4ec88c | |
parent | faeda23c82ba5bff903bc6b15661124847549505 (diff) | |
download | suds-e801f036ab555010d616dc921a2d5a811297dbd5.tar.gz |
Fix pickling problem with wsdls that import other wsdls.
-rw-r--r-- | suds/__init__.py | 2 | ||||
-rw-r--r-- | suds/wsdl.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/suds/__init__.py b/suds/__init__.py index c35c277..c63fa92 100644 --- a/suds/__init__.py +++ b/suds/__init__.py @@ -27,7 +27,7 @@ import sys # __version__ = '0.3.9' -__build__="(beta) R646-20100127" +__build__="(beta) R647-20100128" # # Exceptions diff --git a/suds/wsdl.py b/suds/wsdl.py index 651ca77..2fb54f2 100644 --- a/suds/wsdl.py +++ b/suds/wsdl.py @@ -271,6 +271,9 @@ class Definitions(WObject): d = self.__dict__.copy() del d['options'] return d + + def __repr__(self): + return 'Definitions (id=%s)' % self.id class Import(WObject): @@ -284,9 +287,6 @@ class Import(WObject): @type imported: L{Definitions} """ - def getid(x): - return x.id - def __init__(self, root, definitions): """ @param root: An XML root element. @@ -299,7 +299,7 @@ class Import(WObject): self.ns = root.get('namespace') self.imported = None pmd = self.__metadata__.__print__ - pmd.wrappers['imported'] = self.getid + pmd.wrappers['imported'] = repr def load(self, definitions): """ Load the object by opening the URL """ |