]> git.sesse.net Git - xml-template/commitdiff
Fix a bug in Python attribute handling.
authorsgunderson@bigfoot.com <>
Mon, 8 Jun 2009 23:43:36 +0000 (01:43 +0200)
committersgunderson@bigfoot.com <>
Mon, 8 Jun 2009 23:43:36 +0000 (01:43 +0200)
python/xmltemplate.py

index 16225926876eef7dc95791a7c40401af6681b707..eb50625a600550b2e8bf38d992db0f8cf82366e1 100644 (file)
@@ -35,7 +35,7 @@ def process(node, obj, clean = True):
                                attrs_to_remove = []
                                if not attrs is None:
                                        for i in range(attrs.length):
-                                               attr = attrs.item(0)
+                                               attr = attrs.item(i)
                                                if attr.namespaceURI == "http://template.sesse.net/" and attr.localName == "id":
                                                        id = attr.value
                                                        if clean: