From: Holger Schurig Date: Wed, 23 Jun 2010 08:11:15 +0000 (+0200) Subject: rss_feed.py: publish also pages that have been created X-Git-Url: https://oss.titaniummirror.com/gitweb?p=webber.git;a=commitdiff_plain;h=beefd7886d61f941afdd0041c109219327894119 rss_feed.py: publish also pages that have been created --- diff --git a/plugins/rss_feed.py b/plugins/rss_feed.py index 3497c2a..71c5411 100644 --- a/plugins/rss_feed.py +++ b/plugins/rss_feed.py @@ -40,8 +40,10 @@ def sitemap_scan(params): file = params.file if not file.has_key("linktitle"): return - if not file.has_key("change"): - return + if file.has_key("change"): + change = file["change"] + else: + change = "" fname_out = os.path.join(cfg.out_dir, file.out_path) full_url = "http://%s/%s" % (cfg.main_url, fname_out) @@ -49,7 +51,7 @@ def sitemap_scan(params): title = file["title"], link = full_url, guid = PyRSS2Gen.Guid("%s %s" % (full_url, file["mtime"])), - description = file["change"], + description = change, pubDate = datetime.datetime.fromtimestamp(file["mtime"], utc), ) items.append(item)