mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -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
14
xepinfo.py
14
xepinfo.py
@ -57,7 +57,15 @@ class XEPInfo:
|
|||||||
revNode = (headerNode.getElementsByTagName("revision")[0])
|
revNode = (headerNode.getElementsByTagName("revision")[0])
|
||||||
self.version = getText((revNode.getElementsByTagName("version")[0]).childNodes)
|
self.version = getText((revNode.getElementsByTagName("version")[0]).childNodes)
|
||||||
self.date = getText((revNode.getElementsByTagName("date")[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):
|
def getNr(self):
|
||||||
return self.nr
|
return self.nr
|
||||||
|
|
||||||
@ -75,4 +83,8 @@ class XEPInfo:
|
|||||||
|
|
||||||
def getDate(self):
|
def getDate(self):
|
||||||
return self.date
|
return self.date
|
||||||
|
|
||||||
|
def getDepends(self):
|
||||||
|
return self.depends
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user