1. George Sakkis
  2. suds

Commits

Christian Holm  committed 61858b0

Special handling for Exchange for list appender also

  • Participants
  • Parent commits 9b44d5f
  • Branches default

Comments (0)

Files changed (1)

File suds/mx/appender.py

View file
         if len(collection):
             self.suspend(content)
             for item in collection:
-                cont = Content(tag=content.tag, value=item)
+                if Matcher(Object) == item and content.tag in ("Path", "SearchExpression"):
+                    cont = Content(tag=item.__metadata__.sxbase.qname[0], value=item, type=item.__metadata__.sxtype)
+                else:
+                    cont = Content(tag=content.tag, value=item)
                 Appender.append(self, parent, cont)
             self.resume(content)