diff roundup/backends/back_anydbm.py @ 3083:b9a819ef7554

actor/activity update moved from Database.setnode() to Class.set_inner()
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Thu, 06 Jan 2005 17:41:10 +0000
parents 230f7394cce9
children dbf80d7db63f
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Thu Jan 06 17:35:34 2005 +0000
+++ b/roundup/backends/back_anydbm.py	Thu Jan 06 17:41:10 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.181 2005-01-04 03:26:24 richard Exp $
+#$Id: back_anydbm.py,v 1.182 2005-01-06 17:41:10 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)
 

Roundup Issue Tracker: http://roundup-tracker.org/