diff Feed.py @ 56:c82f5538733c

add a menu item to mark all entries in a feed as read
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 23 Jul 2010 04:06:10 +0200
parents a8442c3487b5
children daa2731967fe
line wrap: on
line diff
--- a/Feed.py	Tue May 18 03:17:06 2010 +0200
+++ b/Feed.py	Fri Jul 23 04:06:10 2010 +0200
@@ -29,3 +29,7 @@
     def incrementNextUpdateDate(self):
         delta = timedelta(minutes=self.update_interval)
         self.next_update = datetime.now() + delta
+
+    def toggleRead(self):
+        for entry in self.entries:
+            entry.toggleRead()
\ No newline at end of file