Mercurial > hg > Feedworm
diff feedupdate.py @ 137:5b131f82057d
allow choosing the backend via commandline option
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 23 Aug 2011 14:36:58 +0200 |
parents | 40163eac0d27 |
children | bb3c851b18b1 |
line wrap: on
line diff
--- a/feedupdate.py Tue Aug 23 04:15:46 2011 +0200 +++ b/feedupdate.py Tue Aug 23 14:36:58 2011 +0200 @@ -1,13 +1,11 @@ #!/usr/bin/env python +import BackendFactory import logging -#from backend.sqlalchemy.SqlAlchemyBackend import SqlAlchemyBackend -from backend.couchdb.CouchDbBackend import CouchDbBackend if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG) -# backend = SqlAlchemyBackend() - backend = CouchDbBackend() + backend = BackendFactory.createBackend() backend.updateAllFeeds() backend.expireFeedEntries() backend.dispose()