Make it easy to pass alternative cache implementations into the constructor as sugges...
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Jun 2006 22:51:00 +0000 (22:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Jun 2006 22:51:00 +0000 (22:51 -0000)
svn path=/main/trunk/; revision=3547

pym/cache/metadata_overlay.py

index 821beead177695ead27c9888f4d998cd8b3a5503..287e05521ca4734c53447bb18717aa436df9f596 100644 (file)
@@ -14,7 +14,8 @@ class database(template.database):
        autocommits = True
        serialize_eclasses = False
 
-       def __init__(self, location, label, auxdbkeys, **config):
+       def __init__(self, location, label, auxdbkeys, db_rw=db_rw, db_ro=db_ro,
+               **config):
                super(database, self).__init__(location, label, auxdbkeys)
                self.db_rw = db_rw(location, label, auxdbkeys, **config)
                self.db_ro = db_ro(label,"metadata/cache",auxdbkeys)