Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
preetwinder
erp5
Commits
8acfb199
Commit
8acfb199
authored
10 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
full_text: revert the change of _renderValueAsSearchText().
parent
2c9b6c5c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
product/ZSQLCatalog/SearchKey/FullTextKey.py
product/ZSQLCatalog/SearchKey/FullTextKey.py
+3
-3
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
+1
-1
No files found.
product/ZSQLCatalog/SearchKey/FullTextKey.py
View file @
8acfb199
...
...
@@ -50,7 +50,7 @@ class FullTextKey(DefaultKey):
return
False
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
return
'
"
%s
"
'
%
value
.
replace
(
'"'
,
'
\\
"'
)
return
'
(
%s
)
'
%
(
value
,
)
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
comparison_operator
):
...
...
@@ -60,8 +60,8 @@ class FullTextKey(DefaultKey):
mode, make the operator for that value be 'match_boolean'.
"""
operator_value_dict
,
logical_operator
,
parsed
=
\
SearchKey
.
_processSearchValue
(
self
,
search_value
,
logical_operator
,
comparison_operator
)
super
(
FullTextKey
,
self
).
_processSearchValue
(
search_value
,
logical_operator
,
comparison_operator
)
new_value_list
=
[]
append
=
new_value_list
.
append
for
value
in
operator_value_dict
.
pop
(
'match'
,
[]):
...
...
This diff is collapsed.
Click to expand it.
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
View file @
8acfb199
...
...
@@ -39,7 +39,7 @@ class MroongaFullTextKey(DefaultKey):
return
False
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
return
'
"
%s
"
'
%
value
.
replace
(
'"'
,
'
\\
"'
)
return
'
(
%s
)
'
%
(
value
,
)
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
comparison_operator
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment