Commit 0dc69b1e authored by Michel Pelletier's avatar Michel Pelletier

added to __setstate__ to detect lexicon

parent 103d084b
......@@ -195,6 +195,8 @@ class Catalog(Persistent, Acquisition.Implicit):
catalog is first activated (from the persistent storage) """
Persistent.__setstate__(self, state)
self.useBrains(self._v_brains)
if not hasattr(self, 'lexicon'):
self.lexicon = Lexicon()
def useBrains(self, brains):
""" Sets up the Catalog to return an object (ala ZTables) that
......
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