From 64ca29f01b5e1224a82ca33a31ae5ca43d214744 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 8 Oct 2010 01:00:03 +0200 Subject: [PATCH] Fixing a small bug. --- gen.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gen.py b/gen.py index c179121c..32ceaf57 100755 --- a/gen.py +++ b/gen.py @@ -163,25 +163,25 @@ class XEPTable: xep.removeChild(xep.firstChild) child = parseString("" + info.getNr() + "") - xep.appendChild(child.getElementsByTagName("number")) + xep.appendChild(child.getElementsByTagName("number")[0]) child = parseString("" + info.getTitle() + "") - xep.appendChild(child.getElementsByTagName("name")) + xep.appendChild(child.getElementsByTagName("name")[0]) child = parseString("" + info.getType() + "") - xep.appendChild(child.getElementsByTagName("type")) + xep.appendChild(child.getElementsByTagName("type")[0]) child = parseString("" + info.getStatus() + "") - xep.appendChild(child.getElementsByTagName("status")) + xep.appendChild(child.getElementsByTagName("status")[0]) child = parseString("" + info.getDate() + "") - xep.appendChild(child.getElementsByTagName("updated")) + xep.appendChild(child.getElementsByTagName("updated")[0]) child = parseString("" + info.getShortname() + "") - xep.appendChild(child.getElementsByTagName("shortname")) + xep.appendChild(child.getElementsByTagName("shortname")[0]) child = parseString("" + info.getAbstract() + "") - xep.appendChild(child.getElementsByTagName("abstract")) + xep.appendChild(child.getElementsByTagName("abstract")[0]) def filebase( filename ): return os.path.splitext(os.path.basename(filename))[0]