comparison FeedUpdater.py @ 7:215c34f61e95

Feed.url -> Feed.rss_url
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 27 Apr 2010 02:38:21 +0200
parents bfd47f55d85b
children fd4c8bfa62d6
comparison
equal deleted inserted replaced
6:87317ba41816 7:215c34f61e95
14 def __init__(self, session, feed): 14 def __init__(self, session, feed):
15 self.session = session 15 self.session = session
16 self.feed = feed 16 self.feed = feed
17 17
18 def update(self): 18 def update(self):
19 result = feedparser.parse(self.feed.url) 19 result = feedparser.parse(self.feed.rss_url)
20 for entry in result.entries: 20 for entry in result.entries:
21 self.processEntry(entry) 21 self.processEntry(entry)
22 22
23 def processEntry(self, entry): 23 def processEntry(self, entry):
24 feedEntry = FeedEntry.findById(entry.id, self.session) 24 feedEntry = FeedEntry.findById(entry.id, self.session)