Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
8acfb199
Commit
8acfb199
authored
Oct 30, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
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'
,
[]):
...
...
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
):
...
...
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