diff roundup/backends/back_anydbm.py @ 252:76c6994aa4e8

CGI interfaces now spit up a top-level index of all instances they can serve.
author Richard Jones <richard@users.sourceforge.net>
date Sat, 29 Sep 2001 13:27:00 +0000
parents ad2c98faec97
children a4241ddd22d7
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Sat Sep 29 13:09:32 2001 +0000
+++ b/roundup/backends/back_anydbm.py	Sat Sep 29 13:27:00 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.7 2001-08-12 06:32:36 richard Exp $
+#$Id: back_anydbm.py,v 1.8 2001-09-29 13:27:00 richard Exp $
 
 import anydbm, os, marshal
 from roundup import hyperdb, date
@@ -41,6 +41,7 @@
         """
         self.dir, self.journaltag = storagelocator, journaltag
         self.classes = {}
+        self.transactions = []
 
     #
     # Classes
@@ -203,21 +204,25 @@
     #
     # Basic transaction support
     #
-    # TODO: well, write these methods (and then use them in other code)
-    def register_action(self):
-        ''' Register an action to the transaction undo log
+    def commit(self):
+        ''' Commit the current transactions.
         '''
-
-    def commit(self):
-        ''' Commit the current transaction, start a new one
-        '''
+        # lock the DB
+        for action, classname, entry in self.transactions:
+            # write the node, figure what's changed for the journal.
+            pass
+        # unlock the DB
 
     def rollback(self):
-        ''' Reverse all actions from the current transaction
+        ''' Reverse all actions from the current transaction.
         '''
+        self.transactions = []
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.7  2001/08/12 06:32:36  richard
+#using isinstance(blah, Foo) now instead of isFooType
+#
 #Revision 1.6  2001/08/07 00:24:42  richard
 #stupid typo
 #

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