Mercurial > hg > Feedworm
view Preference.py @ 85:479e8c06de49
look at the bozo value of the result to determine if something went wrong with the HTTP call
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 09 Sep 2010 16:36:29 +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)