view feedupdate.py @ 198:460a3062c5e6

create the database if it doesn't exist and drop it after test
author dirk
date Fri, 27 Jan 2012 02:35:46 +0100
parents 5b131f82057d
children bb3c851b18b1
line wrap: on
line source

#!/usr/bin/env python

import BackendFactory
import logging

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    backend = BackendFactory.createBackend()
    backend.updateAllFeeds()
    backend.expireFeedEntries()
    backend.dispose()