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

Adding dependency attribute to XEPInfo class.

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3947 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Tobias Markmann 2010-02-19 10:05:13 +00:00
parent 6e6134e9e7
commit 8268ba6595

View File

@ -57,7 +57,15 @@ class XEPInfo:
revNode = (headerNode.getElementsByTagName("revision")[0])
self.version = getText((revNode.getElementsByTagName("version")[0]).childNodes)
self.date = getText((revNode.getElementsByTagName("date")[0]).childNodes)
depNode = headerNode.getElementsByTagName("dependencies")
self.depends = []
if depNode:
depNode = depNode[0]
for dep in depNode.getElementsByTagName("spec"):
self.depends.append(getText(dep.childNodes))
def getNr(self):
return self.nr
@ -75,4 +83,8 @@ class XEPInfo:
def getDate(self):
return self.date
def getDepends(self):
return self.depends