changeset 149:fbc77ecf133b

Makes schema changes mucho easier.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 01:41:36 +0000
parents 8fe7549272cf
children 236f0cf98843
files roundup/backends/back_anydbm.py roundup/backends/back_bsddb.py roundup/backends/back_bsddb3.py
diffstat 3 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Mon Jul 30 01:32:54 2001 +0000
+++ b/roundup/backends/back_anydbm.py	Mon Jul 30 01:41:36 2001 +0000
@@ -1,4 +1,4 @@
-#$Id: back_anydbm.py,v 1.3 2001-07-25 01:23:07 richard Exp $
+#$Id: back_anydbm.py,v 1.4 2001-07-30 01:41:36 richard Exp $
 
 import anydbm, os, marshal
 from roundup import hyperdb, date
@@ -102,7 +102,7 @@
 
         # convert the marshalled data to instances
         properties = self.classes[classname].properties
-        for key in res.keys():
+        for key in properties.keys():
             if key == self.RETIRED_FLAG: continue
             if properties[key].isDateType:
                 res[key] = date.Date(res[key])
@@ -201,6 +201,9 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.3  2001/07/25 01:23:07  richard
+#Added the Roundup spec to the new documentation directory.
+#
 #Revision 1.2  2001/07/23 08:20:44  richard
 #Moved over to using marshal in the bsddb and anydbm backends.
 #roundup-admin now has a "freshen" command that'll load/save all nodes (not
--- a/roundup/backends/back_bsddb.py	Mon Jul 30 01:32:54 2001 +0000
+++ b/roundup/backends/back_bsddb.py	Mon Jul 30 01:41:36 2001 +0000
@@ -1,4 +1,4 @@
-#$Id: back_bsddb.py,v 1.4 2001-07-23 08:25:33 richard Exp $
+#$Id: back_bsddb.py,v 1.5 2001-07-30 01:41:36 richard Exp $
 
 import bsddb, os, marshal
 from roundup import hyperdb, date
@@ -99,7 +99,7 @@
 
         # convert the marshalled data to instances
         properties = self.classes[classname].properties
-        for key in res.keys():
+        for key in properties.keys():
             if properties[key].isDateType:
                 res[key] = date.Date(res[key])
             elif properties[key].isIntervalType:
@@ -199,6 +199,9 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.4  2001/07/23 08:25:33  richard
+#more handling of bad journals
+#
 #Revision 1.3  2001/07/23 08:20:44  richard
 #Moved over to using marshal in the bsddb and anydbm backends.
 #roundup-admin now has a "freshen" command that'll load/save all nodes (not
--- a/roundup/backends/back_bsddb3.py	Mon Jul 30 01:32:54 2001 +0000
+++ b/roundup/backends/back_bsddb3.py	Mon Jul 30 01:41:36 2001 +0000
@@ -1,4 +1,4 @@
-#$Id: back_bsddb3.py,v 1.1 2001-07-24 04:26:03 anthonybaxter Exp $
+#$Id: back_bsddb3.py,v 1.2 2001-07-30 01:41:36 richard Exp $
 
 import bsddb3, os, marshal
 from roundup import hyperdb, date
@@ -99,7 +99,7 @@
 
         # convert the marshalled data to instances
         properties = self.classes[classname].properties
-        for key in res.keys():
+        for key in properties.keys():
             if properties[key].isDateType:
                 res[key] = date.Date(res[key])
             elif properties[key].isIntervalType:
@@ -199,6 +199,10 @@
 
 #
 #$Log: not supported by cvs2svn $
+#Revision 1.1  2001/07/24 04:26:03  anthonybaxter
+#bsddb3 implementation. For now, it's the bsddb implementation with a "3"
+#added in crayon.
+#
 #Revision 1.4  2001/07/23 08:25:33  richard
 #more handling of bad journals
 #

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