view Preference.py @ 112:e4038dd8cc0e

add a comment about a Feedparser bug wrt python3
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 31 Mar 2011 03:50:46 +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)