Commit 103d084b authored by Michel Pelletier's avatar Michel Pelletier

added __setstate__

parent f1f63a3c
......@@ -92,7 +92,7 @@ is no longer known.
"""
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[11:-2]
from Globals import Persistent
import BTree, IIBTree, IOBTree, OIBTree
......@@ -167,6 +167,12 @@ class UnTextIndex(Persistent):
def __len__(self):
return len(self._unindex)
def __setstate__(self, state):
Persistent.__setstate__(self, state)
if not hasattr(self, '_lexicon'):
self._lexicon = Lexicon()
def clear(self):
self._index = IOBTree()
self._unindex = IOBTree()
......
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