Package: python-suds
Version: 0.4.1-9.0
Severity: wishlist
Tags: patch upstream

If multiple wsdl:schema's are used with different namespaces suds
doesn't resolve type names properly.  Turns out my problem is caused by
the same issue as this existing suds bug report (although it is
reporting different symptoms):

  http://fedorahosted.org/suds/ticket/346

The reporter has provided a patch, which I have verified works (thus the
odd debian verison number).  The quilt patch is attached.


-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (50, 'testing'), (40, 
'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-suds depends on:
ii  python                2.7.3-4+deb7u1
ii  python-pkg-resources  0.6.24-1

python-suds recommends no packages.

python-suds suggests no packages.

-- no debconf information
Author: Russell Stuart <r...@debian.org>
Description: Suds doesn't merge multiple namespaces correctly
Bug: https://fedorahosted.org/suds/ticket/346

--- a/suds/xsd/schema.py
+++ b/suds/xsd/schema.py
@@ -265,6 +265,7 @@
         @returns: self
         @rtype: L{Schema} 
         """
+        initial_count = len(self.all)
         for item in schema.attributes.items():
             if item[0] in self.attributes:
                 continue
@@ -290,6 +291,9 @@
                 continue
             self.all.append(item[1])
             self.agrps[item[0]] = item[1]
+        for top_level_item in self.all[initial_count:]:
+            for descendant in top_level_item.content():
+                descendant.schema = self
         schema.merged = True
         return self
         

Reply via email to