comparison FeedEntry.py @ 33:f371d02fa09d

mark unread feed entries bold. Add a menu item to toggle between read/unread
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 30 Apr 2010 06:22:33 +0200
parents 5bb57caa8f66
children daa2731967fe
comparison
equal deleted inserted replaced
32:500ba01e7f7a 33:f371d02fa09d
17 def __repr__(self): 17 def __repr__(self):
18 return "<FeedEntry (%d) %s>" % (self.pk, self.title) 18 return "<FeedEntry (%d) %s>" % (self.pk, self.title)
19 19
20 def userPresentableString(self): 20 def userPresentableString(self):
21 return self.title 21 return self.title
22
23 def toggleRead(self):
24 if self.read:
25 self.read = 0
26 else:
27 self.read = 1