Skip to content

Commit 33c4588

Browse files
author
Richard Jones
committed
Makes schema changes mucho easier.
1 parent 59a1202 commit 33c4588

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

roundup/backends/back_anydbm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_anydbm.py,v 1.3 2001-07-25 01:23:07 richard Exp $
1+
#$Id: back_anydbm.py,v 1.4 2001-07-30 01:41:36 richard Exp $
22

33
import anydbm, os, marshal
44
from roundup import hyperdb, date
@@ -102,7 +102,7 @@ def getnode(self, classname, nodeid, cldb=None):
102102

103103
# convert the marshalled data to instances
104104
properties = self.classes[classname].properties
105-
for key in res.keys():
105+
for key in properties.keys():
106106
if key == self.RETIRED_FLAG: continue
107107
if properties[key].isDateType:
108108
res[key] = date.Date(res[key])
@@ -201,6 +201,9 @@ def rollback(self):
201201

202202
#
203203
#$Log: not supported by cvs2svn $
204+
#Revision 1.3 2001/07/25 01:23:07 richard
205+
#Added the Roundup spec to the new documentation directory.
206+
#
204207
#Revision 1.2 2001/07/23 08:20:44 richard
205208
#Moved over to using marshal in the bsddb and anydbm backends.
206209
#roundup-admin now has a "freshen" command that'll load/save all nodes (not

roundup/backends/back_bsddb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_bsddb.py,v 1.4 2001-07-23 08:25:33 richard Exp $
1+
#$Id: back_bsddb.py,v 1.5 2001-07-30 01:41:36 richard Exp $
22

33
import bsddb, os, marshal
44
from roundup import hyperdb, date
@@ -99,7 +99,7 @@ def getnode(self, classname, nodeid, cldb=None):
9999

100100
# convert the marshalled data to instances
101101
properties = self.classes[classname].properties
102-
for key in res.keys():
102+
for key in properties.keys():
103103
if properties[key].isDateType:
104104
res[key] = date.Date(res[key])
105105
elif properties[key].isIntervalType:
@@ -199,6 +199,9 @@ def rollback(self):
199199

200200
#
201201
#$Log: not supported by cvs2svn $
202+
#Revision 1.4 2001/07/23 08:25:33 richard
203+
#more handling of bad journals
204+
#
202205
#Revision 1.3 2001/07/23 08:20:44 richard
203206
#Moved over to using marshal in the bsddb and anydbm backends.
204207
#roundup-admin now has a "freshen" command that'll load/save all nodes (not

roundup/backends/back_bsddb3.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_bsddb3.py,v 1.1 2001-07-24 04:26:03 anthonybaxter Exp $
1+
#$Id: back_bsddb3.py,v 1.2 2001-07-30 01:41:36 richard Exp $
22

33
import bsddb3, os, marshal
44
from roundup import hyperdb, date
@@ -99,7 +99,7 @@ def getnode(self, classname, nodeid, cldb=None):
9999

100100
# convert the marshalled data to instances
101101
properties = self.classes[classname].properties
102-
for key in res.keys():
102+
for key in properties.keys():
103103
if properties[key].isDateType:
104104
res[key] = date.Date(res[key])
105105
elif properties[key].isIntervalType:
@@ -199,6 +199,10 @@ def rollback(self):
199199

200200
#
201201
#$Log: not supported by cvs2svn $
202+
#Revision 1.1 2001/07/24 04:26:03 anthonybaxter
203+
#bsddb3 implementation. For now, it's the bsddb implementation with a "3"
204+
#added in crayon.
205+
#
202206
#Revision 1.4 2001/07/23 08:25:33 richard
203207
#more handling of bad journals
204208
#

0 commit comments

Comments
 (0)