From 1f3ce47900d2c73373dd6032a828d42b115747b0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Jun 2006 03:53:16 +0000 Subject: [PATCH] Make it possible to pass alternative cache implementations into the constructor as suggested by Brian Harring. This patch is from trunk r3547. svn path=/main/branches/2.1/; revision=3579 --- pym/cache/metadata_overlay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/cache/metadata_overlay.py b/pym/cache/metadata_overlay.py index 104dc34d1..b12740bdb 100644 --- a/pym/cache/metadata_overlay.py +++ b/pym/cache/metadata_overlay.py @@ -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) -- 2.26.2