Commit cc1af038 authored by Michel Pelletier's avatar Michel Pelletier

fixed my fix

parent 750da777
......@@ -202,7 +202,7 @@ Notes on a new text index design
space.
"""
__version__='$Revision: 1.3 $'[11:-2]
__version__='$Revision: 1.4 $'[11:-2]
from Globals import Persistent
import BTree, IIBTree, IOBTree
......@@ -314,7 +314,7 @@ class UnTextIndex(Persistent):
# self._unindex[i] = tuple(d.keys())
unindex[i] = ()
unindex[i] = []
for word,score in d.items():
r = get(word)
......@@ -340,6 +340,8 @@ class UnTextIndex(Persistent):
index[word] = i, score
unindex[i].append(word)
unindex[i] = tuple(unindex[i])
self._index = index
self._unindex = unindex
......
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