Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
- some minor plugin indexes cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jan 30, 2007
1 parent 84859d7 commit b2412f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZCTextIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b2412f4

Please sign in to comment.