Mercurial > hg > Feedworm
comparison Feed.py @ 17:5fda8bd94fa8
make the model used to display feeds generic (so it can be used to display FeedEntries, too)
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 28 Apr 2010 03:37:01 +0200 |
parents | 3ffecc709da9 |
children | 5bb57caa8f66 |
comparison
equal
deleted
inserted
replaced
16:3ffecc709da9 | 17:5fda8bd94fa8 |
---|---|
8 self.title = title | 8 self.title = title |
9 self.rss_url = rss_url | 9 self.rss_url = rss_url |
10 | 10 |
11 def __repr__(self): | 11 def __repr__(self): |
12 return "<Feed (%d) %s>" % (self.pk, self.title) | 12 return "<Feed (%d) %s>" % (self.pk, self.title) |
13 | |
14 def userPresentableString(self): | |
15 return self.title |