Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 460:9c895b44240a
take a copy of the node dict...
so that the subsequent set operation doesn't modify the oldvalues
structure
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 16 Dec 2001 10:53:38 +0000 |
| parents | 7181efddce66 |
| children | b579418f7ed1 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Sat Dec 15 23:51:01 2001 +0000 +++ b/roundup/backends/back_anydbm.py Sun Dec 16 10:53:38 2001 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.17 2001-12-14 23:42:57 richard Exp $ +#$Id: back_anydbm.py,v 1.18 2001-12-16 10:53:38 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -188,7 +188,7 @@ self.transactions.append((self._doSaveNode, (classname, nodeid, node))) def getnode(self, classname, nodeid, db=None): - ''' add the specified node to its class's db + ''' get a node from the database ''' if DEBUG: print 'getnode', (self, classname, nodeid, cldb) @@ -207,7 +207,7 @@ return res def hasnode(self, classname, nodeid, db=None): - ''' add the specified node to its class's db + ''' determine if the database has a given node ''' if DEBUG: print 'hasnode', (self, classname, nodeid, cldb) @@ -338,6 +338,11 @@ # #$Log: not supported by cvs2svn $ +#Revision 1.17 2001/12/14 23:42:57 richard +#yuck, a gdbm instance tests false :( +#I've left the debugging code in - it should be removed one day if we're ever +#_really_ anal about performace :) +# #Revision 1.16 2001/12/12 03:23:14 richard #Cor blimey this anydbm/whichdb stuff is yecchy. Turns out that whichdb #incorrectly identifies a dbm file as a dbhash file on my system. This has
