comparison 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
comparison
equal deleted inserted replaced
136:7217b060b39c 137:5b131f82057d
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import BackendFactory
3 import logging 4 import logging
4 #from backend.sqlalchemy.SqlAlchemyBackend import SqlAlchemyBackend
5 from backend.couchdb.CouchDbBackend import CouchDbBackend
6 5
7 if __name__ == "__main__": 6 if __name__ == "__main__":
8 logging.basicConfig(level=logging.DEBUG) 7 logging.basicConfig(level=logging.DEBUG)
9 # backend = SqlAlchemyBackend() 8 backend = BackendFactory.createBackend()
10 backend = CouchDbBackend()
11 backend.updateAllFeeds() 9 backend.updateAllFeeds()
12 backend.expireFeedEntries() 10 backend.expireFeedEntries()
13 backend.dispose() 11 backend.dispose()