Commits

Gary Lo  committed 65bc0b7
  • Participants
  • Parent commits 3174410

Comments (0)

Files changed (2)

File suds/bindings/document.py

             else:
                 value = kwargs.get(pd[0])
             n += 1
+            if value is None:
+                continue
             p = self.mkparam(method, pd, value)
             if p is None:
                 continue
         for x in ancestry:
             if x.choice():
                 return True
-        return False
+        return False

File suds/mx/appender.py

     def append(self, parent, content):
         p = content.value
         child = self.node(content)
-        child.setText(p.get())
-        parent.append(child)
-        for item in p.items():
-            cont = Content(tag=item[0], value=item[1])
-            Appender.append(self, child, cont)
+        child_value = p.get()
+        if(child_value is None):
+            pass
+        else:
+            child.setText(child_value)
+            parent.append(child)
+            for item in p.items():
+                cont = Content(tag=item[0], value=item[1])
+                Appender.append(self, child, cont)
 
             
 class ObjectAppender(Appender):