Commit b29d4e73 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix typo in pseudo-constant name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33652 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17cc0b24
...@@ -36,7 +36,7 @@ from zope.interface.verify import verifyClass ...@@ -36,7 +36,7 @@ from zope.interface.verify import verifyClass
from Products.ZSQLCatalog.SQLCatalog import profiler_decorator from Products.ZSQLCatalog.SQLCatalog import profiler_decorator
import re import re
FULLTEXT_BOLLEAN_DETECTOR = re.compile(r'.*[\+\-<>\(\)\~\*]') FULLTEXT_BOOLEAN_DETECTOR = re.compile(r'.*[\+\-<>\(\)\~\*]')
class FullTextKey(SearchKey): class FullTextKey(SearchKey):
""" """
...@@ -63,7 +63,7 @@ class FullTextKey(SearchKey): ...@@ -63,7 +63,7 @@ class FullTextKey(SearchKey):
append = new_value_list.append append = new_value_list.append
for value in operator_value_dict.pop('match', []): for value in operator_value_dict.pop('match', []):
if isinstance(value, basestring) and \ if isinstance(value, basestring) and \
FULLTEXT_BOLLEAN_DETECTOR.match(value) is not None: FULLTEXT_BOOLEAN_DETECTOR.match(value) is not None:
operator_value_dict.setdefault('match_boolean', []).append(value) operator_value_dict.setdefault('match_boolean', []).append(value)
else: else:
append(value) append(value)
......
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