|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: hyperdb.py,v 1.60 2002-04-03 05:54:31 richard Exp $ |
| 18 | +# $Id: hyperdb.py,v 1.61 2002-04-03 06:11:51 richard Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Hyperdatabase implementation, especially field types. |
@@ -203,6 +203,9 @@ def unserialise(self, classname, node): |
203 | 203 | properties = self.getclass(classname).getprops() |
204 | 204 | d = {} |
205 | 205 | for k, v in node.items(): |
| 206 | + # avoid properties that don't exist any more |
| 207 | + if not properties.has_key(k): |
| 208 | + continue |
206 | 209 | prop = properties[k] |
207 | 210 | if isinstance(prop, Date) and v is not None: |
208 | 211 | d[k] = date.Date(v) |
@@ -1112,6 +1115,14 @@ def Choice(name, db, *options): |
1112 | 1115 |
|
1113 | 1116 | # |
1114 | 1117 | # $Log: not supported by cvs2svn $ |
| 1118 | +# Revision 1.60 2002/04/03 05:54:31 richard |
| 1119 | +# Fixed serialisation problem by moving the serialisation step out of the |
| 1120 | +# hyperdb.Class (get, set) into the hyperdb.Database. |
| 1121 | +# |
| 1122 | +# Also fixed htmltemplate after the showid changes I made yesterday. |
| 1123 | +# |
| 1124 | +# Unit tests for all of the above written. |
| 1125 | +# |
1115 | 1126 | # Revision 1.59 2002/03/12 22:52:26 richard |
1116 | 1127 | # more pychecker warnings removed |
1117 | 1128 | # |
|
0 commit comments