mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-22 01:02:17 -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:
parent
6e6134e9e7
commit
8268ba6595
12
xepinfo.py
12
xepinfo.py
@ -58,6 +58,14 @@ class XEPInfo:
|
||||
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
|
||||
|
||||
@ -76,3 +84,7 @@ class XEPInfo:
|
||||
def getDate(self):
|
||||
return self.date
|
||||
|
||||
def getDepends(self):
|
||||
return self.depends
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user