Mercurial > hg > Feedworm
view Preference.py @ 47:a8442c3487b5
add an option to Feed that allows loading an entry's link right away instead of displaying a feed's summary
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 16 May 2010 08:13:07 +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)