From: sgunderson@bigfoot.com <> Date: Mon, 8 Jun 2009 23:43:36 +0000 (+0200) Subject: Fix a bug in Python attribute handling. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=83e98596f1532628bff5d122735577d9615098e5 Fix a bug in Python attribute handling. --- diff --git a/python/xmltemplate.py b/python/xmltemplate.py index 1622592..eb50625 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -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: