changeset 129:5bb58c956e48 backend

get rid of the toplevel util module, in only contained unused functions
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 22 Aug 2011 15:06:02 +0200
parents 32a173cb081c
children 1e6274cca035 3719440c8c6b
files util.py
diffstat 1 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/util.py	Mon Aug 22 15:04:53 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-
-from Feed import Feed
-from datetime import datetime, timedelta
-import logging
-
-logger = logging.getLogger("database")
-
-def loadFeeds(session=None, filename="feeds.txt"):
-    file = open(filename)
-    for line in file:
-        (title, rss_url) = line.split("|")
-        # remove the newline
-        rss_url = rss_url.rstrip()
-        feed = Feed(title, rss_url)
-        session.add(feed)
-    file.close()
-    session.commit()
-
-def forceUpdateAllFeeds(session=None):
-    for feed in Feed.all(session):
-        feed.next_update = datetime.now() - timedelta(minutes=1)
-    session.commit()
-