From 379901b7320c4e819b4515de4150f3c5df580336 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 30 Jul 2001 01:41:36 +0000 Subject: [PATCH] Makes schema changes mucho easier. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@155 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_anydbm.py | 7 +++++-- roundup/backends/back_bsddb.py | 7 +++++-- roundup/backends/back_bsddb3.py | 8 ++++++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 99febb2..3845914 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -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 @@ class Database(hyperdb.Database): # 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 @@ class Database(hyperdb.Database): # #$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 diff --git a/roundup/backends/back_bsddb.py b/roundup/backends/back_bsddb.py index db66c48..fde8610 100644 --- a/roundup/backends/back_bsddb.py +++ b/roundup/backends/back_bsddb.py @@ -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 @@ class Database(hyperdb.Database): # 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 @@ class Database(hyperdb.Database): # #$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 diff --git a/roundup/backends/back_bsddb3.py b/roundup/backends/back_bsddb3.py index 59ba80a..581e7bc 100644 --- a/roundup/backends/back_bsddb3.py +++ b/roundup/backends/back_bsddb3.py @@ -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 @@ class Database(hyperdb.Database): # 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 @@ class Database(hyperdb.Database): # #$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 # -- 2.30.2