From 9213c3057e498b4abc8568165b287fa3e113ef80 Mon Sep 17 00:00:00 2001 From: snipem Date: Mon, 2 Jun 2014 22:47:45 +0200 Subject: [PATCH] Fix domain and ttl bugs for RSS generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the context of RSS cloud domain was spelled incorrectly as ‚donain‘ which resulted in an error while unit testing. Additionally, also in RSS ttl (Time to live) wasn’t transformed to a string. --- feedgen/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feedgen/feed.py b/feedgen/feed.py index 315d109..e78e502 100644 --- a/feedgen/feed.py +++ b/feedgen/feed.py @@ -342,7 +342,7 @@ class FeedGenerator(object): textInput.attrib['link'] = self.__rss_textInput.get('link') if self.__rss_ttl: ttl = etree.SubElement(channel, 'ttl') - ttl.text = self.__rss_ttl + ttl.text = str(self.__rss_ttl) if self.__rss_webMaster: webMaster = etree.SubElement(channel, 'webMaster') webMaster.text = self.__rss_webMaster @@ -626,7 +626,7 @@ class FeedGenerator(object): :returns: Dictionary containing the cloud data. ''' if not domain is None: - self.__rss_cloud = {'donain':domain, 'port':port, 'path':path, + self.__rss_cloud = {'domain':domain, 'port':port, 'path':path, 'registerProcedure':registerProcedure, 'protocol':protocol} return self.__rss_cloud