view Preference.py @ 93:e030c6bd2d81

when selecting a feed, set the title column width to 80% of the total width
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 27 Dec 2010 07:41:11 +0100
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)