diff Feed.py @ 16:3ffecc709da9

move fetch logic into Feed
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 28 Apr 2010 03:00:11 +0200
parents 215c34f61e95
children 5fda8bd94fa8
line wrap: on
line diff
--- a/Feed.py	Wed Apr 28 02:57:41 2010 +0200
+++ b/Feed.py	Wed Apr 28 03:00:11 2010 +0200
@@ -1,5 +1,9 @@
 
 class Feed(object):
+    @staticmethod
+    def all(session):
+        return session.query(Feed).order_by(Feed.title).all()
+    
     def __init__(self, title, rss_url):
         self.title = title
         self.rss_url = rss_url