Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 3085:67a6567e14c2 maint-0.8
actor/activity update moved from Database.setnode() to Class.set_inner()
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Jan 2005 17:59:38 +0000 |
| parents | db8f73c0235e |
| children | 0a652c47bc9e |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Wed Jan 05 22:36:30 2005 +0000 +++ b/roundup/backends/back_anydbm.py Thu Jan 06 17:59:38 2005 +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.179.2.2 2005-01-04 03:25:24 richard Exp $ +#$Id: back_anydbm.py,v 1.179.2.3 2005-01-06 17:59:38 a1s 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 versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several @@ -287,12 +287,6 @@ ''' self.dirtynodes.setdefault(classname, {})[nodeid] = 1 - # update the activity time (dupe so we don't affect - # calling code's node assumptions) - node = node.copy() - node['activity'] = date.Date() - node['actor'] = self.getuid() - # can't set without having already loaded the node self.cache[classname][nodeid] = node self.savenode(classname, nodeid, node) @@ -1249,6 +1243,10 @@ if not propvalues: return propvalues + # update the activity time + node['activity'] = date.Date() + node['actor'] = self.db.getuid() + # do the set, and journal it self.db.setnode(self.classname, nodeid, node)
