mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 10:12:19 -05:00
Adding a getInterim method.
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@4077 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
d973a48c08
commit
9b018b800b
10
xepinfo.py
10
xepinfo.py
@ -58,13 +58,21 @@ class XEPInfo:
|
||||
self.version = getText((revNode.getElementsByTagName("version")[0]).childNodes)
|
||||
self.date = getText((revNode.getElementsByTagName("date")[0]).childNodes)
|
||||
|
||||
titleNode = (headerNode.getElementsByTagName("interim"))
|
||||
if titleNode:
|
||||
self.interim = True;
|
||||
else:
|
||||
self.interim = False;
|
||||
|
||||
depNode = headerNode.getElementsByTagName("dependencies")
|
||||
self.depends = []
|
||||
if depNode:
|
||||
depNode = depNode[0]
|
||||
for dep in depNode.getElementsByTagName("spec"):
|
||||
self.depends.append(getText(dep.childNodes))
|
||||
|
||||
|
||||
def getInterim(self):
|
||||
return self.interim
|
||||
|
||||
def getNr(self):
|
||||
return self.nr
|
||||
|
Loading…
Reference in New Issue
Block a user