Commit fb6ede6b authored by Casey Duncan's avatar Casey Duncan

Collector #640: Fixed security assertion on query method

parent 5cc52bf7
......@@ -130,7 +130,7 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
## External methods not in the Pluggable Index API ##
security.declareProtected('query', search_zcatalog)
security.declareProtected(search_zcatalog, 'query')
def query(self, query, nbest=10):
"""Return pair (mapping from docids to scores, num results).
......
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