Commit a19e3010 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify to remove 'Giving where_expression a string value is deprecated.' logs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e24884f
...@@ -32,6 +32,7 @@ from Globals import InitializeClass, DTMLFile ...@@ -32,6 +32,7 @@ from Globals import InitializeClass, DTMLFile
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ZSQLCatalog.SQLCatalog import SQLQuery
from zLOG import LOG from zLOG import LOG
from DateTime import DateTime from DateTime import DateTime
...@@ -188,7 +189,10 @@ class DomainTool(BaseTool): ...@@ -188,7 +189,10 @@ class DomainTool(BaseTool):
else: else:
where_expression = category_expression where_expression = category_expression
sql_kw['where_expression'] = where_expression if len(where_expression):
sql_kw['where_expression'] = SQLQuery(where_expression)
else:
sql_kw['where_expression'] = ''
kw.update(sql_kw) kw.update(sql_kw)
# LOG('searchPredicateList, kw',0,kw) # LOG('searchPredicateList, kw',0,kw)
......
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