Mercurial > hg > Feedworm
diff backend/sqlalchemy/SqlAlchemyBackend.py @ 168:f4708d38419c
move methods around so the SqlAlchemyBackend only needs to import the class
author | dirk |
---|---|
date | Mon, 05 Sep 2011 19:43:34 +0200 |
parents | a3c945ce434c |
children | 3bcf39181f6e |
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py Mon Sep 05 19:39:08 2011 +0200 +++ b/backend/sqlalchemy/SqlAlchemyBackend.py Mon Sep 05 19:43:34 2011 +0200 @@ -1,13 +1,13 @@ from Feed import Feed from FeedEntry import FeedEntry +from FeedUpdater import FeedUpdater from Preferences import Preferences from backend.AbstractBackend import AbstractBackend from datetime import datetime, timedelta from sqlalchemy.orm import joinedload from sqlalchemy.sql import and_ import Database -import FeedUpdater import Mapping import logging import util @@ -78,7 +78,7 @@ newFeed = Feed(url) self.session.add(newFeed) - FeedUpdater.FeedUpdater(self.preferences(), self.session).update(newFeed) + FeedUpdater(self.preferences(), self.session).update(newFeed) self.session.commit() except AttributeError as ae: self.session.rollback()