1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

Fixing a small bug.

This commit is contained in:
Tobias Markmann 2010-10-08 01:24:29 +02:00
parent 6b0f00df78
commit 2229c7fc10

View File

@ -49,9 +49,9 @@ class XEPInfo:
titleNode = (headerNode.getElementsByTagName("title")[0]) titleNode = (headerNode.getElementsByTagName("title")[0])
self.title = getText(titleNode.childNodes) self.title = getText(titleNode.childNodes)
self.nr = getText((headerNode.getElementsByTagName("number")[0]).childNodes) self.nr = getText((headerNode.getElementsByTagName("number")[0]).childNodes)
shortnameNode = (headerNode.getElementsByTagName("shortname")[0]) shortnameNode = headerNode.getElementsByTagName("shortname")
if shortnameNode: if shortnameNode:
self.shortname = getText(shortnameNode.childNodes) self.shortname = getText((shortnameNode[0]).childNodes)
else: else:
self.shortname = "NOT YET ASSIGNED" self.shortname = "NOT YET ASSIGNED"
abstractNode = (headerNode.getElementsByTagName("abstract")[0]) abstractNode = (headerNode.getElementsByTagName("abstract")[0])