comparison backend/sqlalchemy/SqlAlchemyBackend.py @ 146:8ec20377bcb0

move getting the entries for a feed to the backend so that the couchdb backend can use a custom view for feed entries
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 25 Aug 2011 07:01:45 +0200
parents 71c5dc02ff87
children bca9341dc67f
comparison
equal deleted inserted replaced
145:71c5dc02ff87 146:8ec20377bcb0
73 73
74 def deleteFeed(self, feed): 74 def deleteFeed(self, feed):
75 self.session.delete(feed) 75 self.session.delete(feed)
76 self.session.commit() 76 self.session.commit()
77 77
78 def entriesForFeed(self, feed, hideReadEntries):
79 return feed.entriesSortedByUpdateDate(hideReadEntries)
80
78 def markFeedEntriesAsRead(self, entries): 81 def markFeedEntriesAsRead(self, entries):
79 for entry in entries: 82 for entry in entries:
80 entry.markRead() 83 entry.markRead()
81 self.session.commit() 84 self.session.commit()
82 85