X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fxmltemplate.py;h=182b8e4a3712953d48a572d4183791ef4c3946ea;hb=c1cd6224b8614335bb04d36699876211843f558a;hp=b24d7642ccda30a0173ccd345fc413a313e19dbd;hpb=3410d39314be774eba5ca154e5e9633526dc0508;p=xml-template diff --git a/python/xmltemplate.py b/python/xmltemplate.py index b24d764..182b8e4 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -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