Mercurial > hg > Feedworm
comparison FeedEntry.py @ 29:74481aa49974
add a read flag for feed entries so they can be marked read
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 29 Apr 2010 16:48:16 +0200 |
parents | 0b8398ca6cd0 |
children | 5bb57caa8f66 |
comparison
equal
deleted
inserted
replaced
28:72dfae865899 | 29:74481aa49974 |
---|---|
7 result = session.query(FeedEntry).filter(FeedEntry.id == id) | 7 result = session.query(FeedEntry).filter(FeedEntry.id == id) |
8 return result.first() | 8 return result.first() |
9 | 9 |
10 def __init__(self): | 10 def __init__(self): |
11 self.create_timestamp = datetime.now() | 11 self.create_timestamp = datetime.now() |
12 self.read = 0 | |
12 | 13 |
13 def __repr__(self): | 14 def __repr__(self): |
14 return "<FeedEntry (%d) %s>" % (self.pk, self.title) | 15 return "<FeedEntry (%d) %s>" % (self.pk, self.title) |
15 | 16 |
16 def userPresentableString(self): | 17 def userPresentableString(self): |