summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7907ff)
raw | patch | inline | side by side (parent: c7907ff)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 5 Feb 2010 04:10:06 +0000 (04:10 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 5 Feb 2010 04:10:06 +0000 (04:10 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4450 57a73879-2fb5-44c3-a270-3262357dd7e2
test/memorydb.py | patch | blob | history |
diff --git a/test/memorydb.py b/test/memorydb.py
index 25901215ddba11ea31297aad95ba996ebd05ac6f..ce10086ca7ea953b05bdc80879d0b72e7408d346 100644 (file)
--- a/test/memorydb.py
+++ b/test/memorydb.py
+# $Id: test_memorydb.py,v 1.4 2004-11-03 01:34:21 richard Exp $
'''Implement an in-memory hyperdb for testing purposes.
'''
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):