changeset 143:f0941f42314c

remove the normalize method, it was pulled up to the parent class
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 24 Aug 2011 11:04:09 +0200
parents 1524e1cefd39
children 74217db92993
files backend/sqlalchemy/FeedUpdater.py
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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)