comparison 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
comparison
equal deleted inserted replaced
15:b1aeb98824c1 16:3ffecc709da9
1 1
2 class Feed(object): 2 class Feed(object):
3 @staticmethod
4 def all(session):
5 return session.query(Feed).order_by(Feed.title).all()
6
3 def __init__(self, title, rss_url): 7 def __init__(self, title, rss_url):
4 self.title = title 8 self.title = title
5 self.rss_url = rss_url 9 self.rss_url = rss_url
6 10
7 def __repr__(self): 11 def __repr__(self):