aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'overlord/overlays')
-rw-r--r--overlord/overlays/overlay.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/overlord/overlays/overlay.py b/overlord/overlays/overlay.py
index 4a3cae7..e8730f9 100644
--- a/overlord/overlays/overlay.py
+++ b/overlord/overlays/overlay.py
@@ -210,6 +210,12 @@ class Overlay(object):
self.feeds = [ensure_unicode(strip_text(e)) for e in xml.findall('feed')]
+ _irc = xml.find('irc')
+ if _irc != None:
+ self.irc = ensure_unicode(strip_text(_irc))
+ else:
+ self.irc = None
+
def __eq__(self, other):
for i in ('description', 'homepage', 'name', 'owner_email',
@@ -249,6 +255,10 @@ class Overlay(object):
homepage = ET.Element('homepage')
homepage.text = self.homepage
repo.append(homepage)
+ if self.irc != None:
+ irc = ET.Element('irc')
+ irc.text = self.irc
+ repo.append(irc)
owner = ET.Element('owner')
repo.append(owner)
owner_email = ET.Element('email')
@@ -354,6 +364,9 @@ class Overlay(object):
result += u'\n '.join((u'\n' + link).split(u'\n'))
result += u'\n'
+ if self.irc != None:
+ result += u'\nIRC : ' + self.irc + u'\n'
+
if self.feeds:
result += u'\n%s:' % ((len(self.feeds) == 1) and "Feed" or "Feeds")
for i in self.feeds: