index b5e25a249a95d88a5b3e91238743871abe9ab604..4562d29900f113a21bd5b03dd7f3dab511da570d 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_bsddb.py,v 1.8 2001-08-07 00:24:42 richard Exp $
+#$Id: back_bsddb.py,v 1.9 2001-08-12 06:32:36 richard Exp $
import bsddb, os, marshal
from roundup import hyperdb, date
import bsddb, os, marshal
from roundup import hyperdb, date
# convert the instance data to builtin types
properties = self.classes[classname].properties
for key in properties.keys():
# convert the instance data to builtin types
properties = self.classes[classname].properties
for key in properties.keys():
- if properties[key].isDateType:
+ if isinstance(properties[key], hyperdb.Date):
node[key] = node[key].get_tuple()
node[key] = node[key].get_tuple()
- elif properties[key].isIntervalType:
+ elif isinstance(properties[key], hyperdb.Interval):
node[key] = node[key].get_tuple()
# now save the marshalled data
node[key] = node[key].get_tuple()
# now save the marshalled data
# convert the marshalled data to instances
properties = self.classes[classname].properties
for key in properties.keys():
# convert the marshalled data to instances
properties = self.classes[classname].properties
for key in properties.keys():
- if properties[key].isDateType:
+ if isinstance(properties[key], hyperdb.Date):
res[key] = date.Date(res[key])
res[key] = date.Date(res[key])
- elif properties[key].isIntervalType:
+ elif isinstance(properties[key], hyperdb.Interval):
res[key] = date.Interval(res[key])
if not cldb: db.close()
res[key] = date.Interval(res[key])
if not cldb: db.close()
#
#$Log: not supported by cvs2svn $
#
#$Log: not supported by cvs2svn $
+#Revision 1.8 2001/08/07 00:24:42 richard
+#stupid typo
+#
#Revision 1.7 2001/08/07 00:15:51 richard
#Added the copyright/license notice to (nearly) all files at request of
#Bizar Software.
#Revision 1.7 2001/08/07 00:15:51 richard
#Added the copyright/license notice to (nearly) all files at request of
#Bizar Software.