Mercurial > hg > Feedworm
view Preference.py @ 71:228da10cc98b
MainWindow relies on FeedList to get the feeds to display now. FeedList has two inner/private classes: one for returning all known feeds and one to return only feeds with unread entries.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 11 Aug 2010 03:10:32 +0200 |
parents | be990ac6e478 |
children |
line wrap: on
line source
class Preference(object): @staticmethod def forKey(key, session): return session.query(Preference).filter(Preference.key == key).first() def __init__(self, key, value): self.key = key self.value = value def __repr__(self): return "<Preference %s = %s>" % (self.key, self.value)