Mercurial > hg > Feedworm
comparison FeedEntry.py @ 5:bfd47f55d85b
add the updated date of the feed
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 26 Apr 2010 20:46:37 +0200 |
parents | e0199f383442 |
children | 87317ba41816 |
comparison
equal
deleted
inserted
replaced
4:e0199f383442 | 5:bfd47f55d85b |
---|---|
3 @staticmethod | 3 @staticmethod |
4 def findById(id, session): | 4 def findById(id, session): |
5 result = session.query(FeedEntry).filter(FeedEntry.id == id) | 5 result = session.query(FeedEntry).filter(FeedEntry.id == id) |
6 return result.first() | 6 return result.first() |
7 | 7 |
8 def __init__(self, id, url, title, summary): | 8 def __init__(self): |
9 self.id = id | 9 pass |
10 self.url = url | |
11 self.title = title | |
12 self.summary = summary | |
13 | 10 |
14 def __repr__(self): | 11 def __repr__(self): |
15 return "<FeedEntry (%d) %s>" % (self.pk, self.link) | 12 return "<FeedEntry (%d) %s>" % (self.pk, self.link) |