Commits

Anonymous committed 61858b0

Special handling for Exchange for list appender also

Comments (0)

Files changed (1)

suds/mx/appender.py

         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)