Commit 840e31ed authored by Romain Courteaud's avatar Romain Courteaud

Add 'nlt' (Not Less Than) keyword in asSQLExpression.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14936 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37ff5bd9
......@@ -333,6 +333,8 @@ class Query(QueryMixin):
where_expression.append("%s >= %s and %s <= %s" % (key, query_min, key, query_max))
elif range_value == 'ngt' :
where_expression.append("%s <= %s" % (key, query_max))
elif range_value == 'nlt' :
where_expression.append("%s > %s" % (key, query_max))
elif isSimpleType(value) or isinstance(value, DateTime) \
or isinstance(value, (list, tuple)):
# Convert into lists any value which contain a ;
......
......@@ -42,4 +42,4 @@ def initialize(context):
context.registerHelpTitle('Zope Help')
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic('ComplexQuery', 'Query')
\ No newline at end of file
ModuleSecurityInfo('Products.ZSQLCatalog.SQLCatalog').declarePublic('ComplexQuery', 'Query')
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