1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-28 04:02:20 -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:
Tobias Markmann 2010-03-13 22:23:37 +00:00
parent d973a48c08
commit 9b018b800b

View File

@ -58,6 +58,12 @@ 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:
@ -65,6 +71,8 @@ class XEPInfo:
for dep in depNode.getElementsByTagName("spec"):
self.depends.append(getText(dep.childNodes))
def getInterim(self):
return self.interim
def getNr(self):
return self.nr