Commit 4afac5ce authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup SQLCatalog_makeSearchTextQuery.

parent a396a443
...@@ -71,10 +71,9 @@ else:\n ...@@ -71,10 +71,9 @@ else:\n
column = \'title\'\n column = \'title\'\n
node = context.Base_getAdvancedSearchSyntaxTreeNode(value, column=column)\n node = context.Base_getAdvancedSearchSyntaxTreeNode(value, column=column)\n
if node is None:\n if node is None:\n
from Products.ZSQLCatalog.SQLCatalog import Query\n return context.buildSingleQuery(column, value)\n
return Query(**{column:value})\n
else:\n else:\n
return context.getPortalObject().portal_catalog.getSQLCatalog().buildQueryFromAbstractSyntaxTreeNode(node, column)\n return context.buildQueryFromAbstractSyntaxTreeNode(node, column)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
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