Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
erp5
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):
...
@@ -50,7 +50,7 @@ class FullTextKey(DefaultKey):
return
False
return
False
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
return
'
"%s"'
%
value
.
replace
(
'"'
,
'
\
\
"'
)
return
'
(%s)'
%
(
value
,
)
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
comparison_operator
):
comparison_operator
):
...
@@ -60,8 +60,8 @@ class FullTextKey(DefaultKey):
...
@@ -60,8 +60,8 @@ class FullTextKey(DefaultKey):
mode, make the operator for that value be 'match_boolean'.
mode, make the operator for that value be 'match_boolean'.
"""
"""
operator_value_dict
,
logical_operator
,
parsed
=
\
operator_value_dict
,
logical_operator
,
parsed
=
\
SearchKey
.
_processSearchValue
(
self
,
search_value
,
logical_operator
,
super
(
FullTextKey
,
self
).
_processSearchValue
(
comparison_operator
)
search_value
,
logical_operator
,
comparison_operator
)
new_value_list
=
[]
new_value_list
=
[]
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'
,
[]):
...
...
product/ZSQLCatalog/SearchKey/MroongaFullTextKey.py
View file @
8acfb199
...
@@ -39,7 +39,7 @@ class MroongaFullTextKey(DefaultKey):
...
@@ -39,7 +39,7 @@ class MroongaFullTextKey(DefaultKey):
return
False
return
False
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
def
_renderValueAsSearchText
(
self
,
value
,
operator
):
return
'
"%s"'
%
value
.
replace
(
'"'
,
'
\
\
"'
)
return
'
(%s)'
%
(
value
,
)
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
def
_processSearchValue
(
self
,
search_value
,
logical_operator
,
comparison_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