From 7cfecdab6e8127776dbfbb076172145ff2df669b Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 5 Feb 2010 04:10:06 +0000 Subject: [PATCH] minor fix to memorydb git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4450 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/memorydb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/memorydb.py b/test/memorydb.py index 2590121..ce10086 100644 --- a/test/memorydb.py +++ b/test/memorydb.py @@ -1,3 +1,4 @@ +# $Id: test_memorydb.py,v 1.4 2004-11-03 01:34:21 richard Exp $ '''Implement an in-memory hyperdb for testing purposes. ''' @@ -278,9 +279,9 @@ class Database(hyperdb.Database, roundupdb.Database): def setnode(self, classname, nodeid, node): self.getclassdb(classname)[nodeid] = node - def getnode(self, classname, nodeid, cldb=None): - if cldb is not None: - return cldb[nodeid] + def getnode(self, classname, nodeid, db=None): + if db is not None: + return db[nodeid] return self.getclassdb(classname)[nodeid] def destroynode(self, classname, nodeid): -- 2.30.2