Mercurial > hg > Feedworm
changeset 7:215c34f61e95
Feed.url -> Feed.rss_url
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 27 Apr 2010 02:38:21 +0200 |
parents | 87317ba41816 |
children | 2da2b691345d |
files | Feed.py FeedUpdater.py Mapping.py |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Feed.py Tue Apr 27 02:30:50 2010 +0200 +++ b/Feed.py Tue Apr 27 02:38:21 2010 +0200 @@ -1,8 +1,8 @@ class Feed(object): - def __init__(self, name, url): - self.name = name - self.url = url + def __init__(self, title, rss_url): + self.title = title + self.rss_url = rss_url def __repr__(self): - return "<Feed (%d) %s>" % (self.pk, self.name) + return "<Feed (%d) %s>" % (self.pk, self.title)
--- a/FeedUpdater.py Tue Apr 27 02:30:50 2010 +0200 +++ b/FeedUpdater.py Tue Apr 27 02:38:21 2010 +0200 @@ -16,7 +16,7 @@ self.feed = feed def update(self): - result = feedparser.parse(self.feed.url) + result = feedparser.parse(self.feed.rss_url) for entry in result.entries: self.processEntry(entry)
--- a/Mapping.py Tue Apr 27 02:30:50 2010 +0200 +++ b/Mapping.py Tue Apr 27 02:38:21 2010 +0200 @@ -16,8 +16,8 @@ feedTable = Table("feed", metadata, Column("pk", Integer, primary_key=True), - Column("name", String(255), nullable=False), - Column("url", String(255), nullable=False) + Column("title", String(255), nullable=False), + Column("rss_url", String(255), nullable=False) ) feedEntryTable = Table("feed_entry", metadata,