Commit 67afb3df authored by Chris McDonough's avatar Chris McDonough

- Fix small bug related to ZCTextIndex attempting to index the

        results of a callable.  Do not attempt to index None.
parent 115e08fd
......@@ -170,6 +170,8 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
return 0
if callable(text):
text = text()
if text is None:
return 0
count = self.index.index_doc(docid, text)
self._p_changed = 1 # XXX
return count
......
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