Commit d1f544be authored by Michel Pelletier's avatar Michel Pelletier

Fixed bug in positions method that still referenced _data (ala

ZTables)
parent 7d3031bb
......@@ -87,7 +87,7 @@
"""
__version__='$Revision: 1.8 $'[11:-2]
__version__='$Revision: 1.9 $'[11:-2]
from Globals import Persistent
import BTree, IIBTree, IOBTree, OIBTree
......@@ -138,7 +138,7 @@ class UnTextIndex(Persistent):
self._unindex = IOBTree()
def positions(self, docid, words):
def positions(self, docid, words, obj):
"""Return the positions in the document for the given document
id of the word, word."""
id = self.id
......@@ -150,12 +150,10 @@ class UnTextIndex(Persistent):
id = self._schema[id]
row = self._data[docid]
if self.call_methods:
doc = str(f(row, id)())
doc = str(f(obj, id)())
else:
doc = str(f(row, id))
doc = str(f(obj, id))
r = []
for word in words:
......
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