From b2412f439632b29b3694c33e34834fd10ab968ff Mon Sep 17 00:00:00 2001 From: Date: Tue, 30 Jan 2007 18:58:05 +0000 Subject: [PATCH] - some minor plugin indexes cleanup --- ZCTextIndex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZCTextIndex.py b/ZCTextIndex.py index 795e5ac..79ee1c8 100644 --- a/ZCTextIndex.py +++ b/ZCTextIndex.py @@ -61,13 +61,12 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem): ## Magic class attributes ## meta_type = 'ZCTextIndex' + query_options = ('query',) manage_options = ( {'label': 'Overview', 'action': 'manage_main'}, ) - query_options = ['query'] - security = ClassSecurityInfo() security.declareObjectProtected(manage_zcatalog_indexes) @@ -204,7 +203,7 @@ def unindex_object(self, docid): if self.index.has_doc(docid): self.index.unindex_doc(docid) - def _apply_index(self, request, cid=''): + def _apply_index(self, request): """Apply query specified by request, a mapping containing the query. Returns two object on success, the resultSet containing the @@ -216,6 +215,7 @@ def _apply_index(self, request, cid=''): record = parseIndexRequest(request, self.id, self.query_options) if record.keys is None: return None + query_str = ' '.join(record.keys) if not query_str: return None