Mercurial > hg > Feedworm
annotate Feed.py @ 13:591ecc2a99bd
move logging configuration to the util module, configure logging for sqlalchemy
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 28 Apr 2010 02:23:00 +0200 |
parents | 215c34f61e95 |
children | 3ffecc709da9 |
rev | line source |
---|---|
2
8a624ee48a74
First skeleton for sqlalchemy: define the mapping and create the first feed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 |
8a624ee48a74
First skeleton for sqlalchemy: define the mapping and create the first feed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 class Feed(object): |
7 | 3 def __init__(self, title, rss_url): |
4 self.title = title | |
5 self.rss_url = rss_url | |
2
8a624ee48a74
First skeleton for sqlalchemy: define the mapping and create the first feed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
8a624ee48a74
First skeleton for sqlalchemy: define the mapping and create the first feed
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 def __repr__(self): |
7 | 8 return "<Feed (%d) %s>" % (self.pk, self.title) |