Commit 942537ac authored by Christophe Dumez's avatar Christophe Dumez

- Removed some unneeded code

- Added a way to do exact search using "=pattern"


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72d95673
......@@ -1583,12 +1583,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
# For security.
value = self._quoteSQLString(value)
if value != '' or not ignore_empty_string:
# we consider empty string as Non Significant
if value == '=':
# But we consider the sign = as empty string
value=''
if '%' in value:
where_expression += ["%s LIKE '%s'" % (key, value)]
elif value.startswith('='):
where_expression += ["%s = '%s'" % (key, value[1:])]
elif value.startswith('>='):
where_expression += ["%s >= '%s'" % (key, value[2:])]
elif value.startswith('<='):
......
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