Commit ad84bed8 authored by Michel Pelletier's avatar Michel Pelletier

Rebuild my brains when the schema changes

parent 79d6af8f
......@@ -118,7 +118,8 @@ class Catalog(Persistent, Acquisition.Implicit):
else:
schema[name] = 0
names.append(name)
self.useBrains(self._v_brains)
if default_value is None or default_value == '':
default_value = MV
......@@ -131,6 +132,8 @@ class Catalog(Persistent, Acquisition.Implicit):
self.names = tuple(names)
self.schema = schema
self.useBrains(self._v_brains)
self.__changed__(1) #why?
......@@ -153,6 +156,8 @@ class Catalog(Persistent, Acquisition.Implicit):
self.schema = schema
self.names = tuple(names)
self.useBrains(self._v_brains)
# remove the column value from each record
for key in self.data.keys():
rec = list(self.data[key])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment