Mercurial > hg > Feedworm
view FeedEntry.py @ 22:cb9d8da0f307
Put the widgets into a layout to have proper resize behaviour
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 29 Apr 2010 05:22:59 +0200 |
parents | 0b8398ca6cd0 |
children | 74481aa49974 |
line wrap: on
line source
from datetime import datetime class FeedEntry(object): @staticmethod def findById(id, session): result = session.query(FeedEntry).filter(FeedEntry.id == id) return result.first() def __init__(self): self.create_timestamp = datetime.now() def __repr__(self): return "<FeedEntry (%d) %s>" % (self.pk, self.title) def userPresentableString(self): return self.title