diff 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
line wrap: on
line diff
--- a/FeedEntry.py	Fri Apr 30 06:02:06 2010 +0200
+++ b/FeedEntry.py	Fri Apr 30 06:22:33 2010 +0200
@@ -18,4 +18,10 @@
         return "<FeedEntry (%d) %s>" % (self.pk, self.title)
 
     def userPresentableString(self):
-        return self.title
\ No newline at end of file
+        return self.title
+    
+    def toggleRead(self):
+        if self.read:
+            self.read = 0
+        else:
+            self.read = 1