]> git.sesse.net Git - xml-template/commitdiff
Merge.
authorsgunderson@bigfoot.com <>
Thu, 22 Sep 2011 00:15:41 +0000 (02:15 +0200)
committersgunderson@bigfoot.com <>
Thu, 22 Sep 2011 00:15:41 +0000 (02:15 +0200)
python/xmltemplate.py

index b24d7642ccda30a0173ccd345fc413a313e19dbd..182b8e4a3712953d48a572d4183791ef4c3946ea 100644 (file)
@@ -63,7 +63,7 @@ def process(node, obj, clean = True):
 
                        if not processed:
                                process(child, obj, clean)
-       elif isinstance(obj, list):                     # repeat
+       elif hasattr(obj, '__iter__'):                  # repeat
                doc = _get_document_element(node)
                frag = doc.createElement("temporary-fragment")     # ugh