index 46b693c1a1a5a1b1e6fa29e2db7690f884524b2a..8c402e5421041330389eb68e501759f61c45a356 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_bsddb3.py,v 1.6 2001-08-07 00:24:42 richard Exp $
+#$Id: back_bsddb3.py,v 1.7 2001-08-12 06:32:36 richard Exp $
import bsddb3, os, marshal
from roundup import hyperdb, date
# 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()
- elif properties[key].isIntervalType:
+ elif isinstance(properties[key], hyperdb.Interval):
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():
- if properties[key].isDateType:
+ if isinstance(properties[key], hyperdb.Date):
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()
#
#$Log: not supported by cvs2svn $
+#Revision 1.6 2001/08/07 00:24:42 richard
+#stupid typo
+#
#Revision 1.5 2001/08/07 00:15:51 richard
#Added the copyright/license notice to (nearly) all files at request of
#Bizar Software.