Created
May 20, 2009 01:30
-
-
Save sekimura/114552 to your computer and use it in GitHub Desktop.
patch for http://bitbucket.org/Surgo/pyaaws/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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