Make it possible to pass alternative cache implementations into the constructor as...
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 03:53:16 +0000 (03:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 03:53:16 +0000 (03:53 -0000)
svn path=/main/branches/2.1/; revision=3579

pym/cache/metadata_overlay.py

index 104dc34d1556753f9e467cebb1cc893b861d1864..b12740bdb16de52b3638e11aa26e7c8f0952ecad 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)