# HG changeset patch # User Dirk Olmes # Date 1314176649 -7200 # Node ID f0941f42314c4521b1010d65979210ac4d035435 # Parent 1524e1cefd3948180cb676a2f018618ee3d3250c remove the normalize method, it was pulled up to the parent class diff -r 1524e1cefd39 -r f0941f42314c backend/sqlalchemy/FeedUpdater.py --- a/backend/sqlalchemy/FeedUpdater.py Wed Aug 24 10:57:42 2011 +0200 +++ b/backend/sqlalchemy/FeedUpdater.py Wed Aug 24 11:04:09 2011 +0200 @@ -20,19 +20,6 @@ def findFeedsToUpdate(session): return session.query(Feed).filter(Feed.next_update < datetime.now()) -def normalize(entry): - if not hasattr(entry, "id"): - entry.id = entry.link - if not hasattr(entry, "updated_parsed"): - entry.updated_parsed = datetime.today() - else: - entry.updated_parsed = datetime(*entry.updated_parsed[:6]) - if not hasattr(entry, "summary"): - if hasattr(entry, "content"): - entry.summary = entry.content[0].value - else: - entry.summary = "" - def createNewFeed(url, session): # when updating to python3 see http://code.google.com/p/feedparser/issues/detail?id=260 result = feedparser.parse(url)