Permalink
Browse files

Fix for multi-dimensional arrays.

  • Loading branch information...
1 parent b87f67c commit 069d5a6a50929d7807e8ece368f928d567531a85 @jonozzz jonozzz committed Mar 21, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 SOAPpy/SOAPBuilder.py
View
7 SOAPpy/SOAPBuilder.py 100644 → 100755
@@ -495,8 +495,13 @@ def dump_list(self, obj, tag, typed = 1, ns_map = {}):
else:
elemsname = tag
+ if isinstance(data, (list, tuple, arrayType)):
+ should_drill = True
+ else:
+ should_drill = not same_type
+
for i in data:
- self.dump(i, elemsname, not same_type, ns_map)
+ self.dump(i, elemsname, should_drill, ns_map)
if typed: self.out.append('</%s>\n' % tag)

0 comments on commit 069d5a6

Please sign in to comment.