summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1095bf)
raw | patch | inline | side by side (parent: d1095bf)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 3 Apr 2002 07:05:50 +0000 (07:05 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 3 Apr 2002 07:05:50 +0000 (07:05 +0000) |
all better now...
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@693 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@693 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/hyperdb.py | patch | blob | history |
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index 404cd7cfd5c0776b63dbfaf624a1d6c25a8c8eb6..a58e7ef29e6476b8c4ce7f5ac46300f3471a16f4 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.61 2002-04-03 06:11:51 richard Exp $
+# $Id: hyperdb.py,v 1.62 2002-04-03 07:05:50 richard Exp $
__doc__ = """
Hyperdatabase implementation, especially field types.
properties = self.getclass(classname).getprops()
d = {}
for k, v in node.items():
+ # if the property doesn't exist, or is the "retired" flag then
+ # it won't be in the properties dict
+ if not properties.has_key(k):
+ d[k] = v
+ continue
+
+ # get the property spec
prop = properties[k]
if isinstance(prop, Password):
properties = self.getclass(classname).getprops()
d = {}
for k, v in node.items():
- # avoid properties that don't exist any more
+ # if the property doesn't exist, or is the "retired" flag then
+ # it won't be in the properties dict
if not properties.has_key(k):
+ d[k] = v
continue
+
+ # get the property spec
prop = properties[k]
+
if isinstance(prop, Date) and v is not None:
d[k] = date.Date(v)
elif isinstance(prop, Interval) and v is not None:
#
# $Log: not supported by cvs2svn $
+# Revision 1.61 2002/04/03 06:11:51 richard
+# Fix for old databases that contain properties that don't exist any more.
+#
# Revision 1.60 2002/04/03 05:54:31 richard
# Fixed serialisation problem by moving the serialisation step out of the
# hyperdb.Class (get, set) into the hyperdb.Database.