Skip to content

Instantly share code, notes, and snippets.

@sekimura
Created May 20, 2009 01:30
Show Gist options
  • Save sekimura/114552 to your computer and use it in GitHub Desktop.
Save sekimura/114552 to your computer and use it in GitHub Desktop.
diff -r b254f2982f23 aaws.py
--- a/aaws.py Tue May 19 16:26:03 2009 +0900
+++ b/aaws.py Tue May 19 18:29:57 2009 -0700
@@ -949,7 +949,10 @@
if node.tagName in plugins['isCollected']:
setattr(bag, key, unmarshall(node, plugins, Bags([])))
elif node.tagName in plugins['isCollective']:
- bag.append(unmarshall(node, plugins))
+ if type(bag) <> type([]):
+ setattr(bag, key, [unmarshall(node, plugins)])
+ else:
+ bag.append(unmarshall(node, plugins))
elif node.tagName in plugins['isPivoted']:
unmarshall(node, plugins, bag)
elif node.tagName in plugins['isBypassed']:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment