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): ...@@ -333,6 +333,8 @@ class Query(QueryMixin):
where_expression.append("%s >= %s and %s <= %s" % (key, query_min, key, query_max)) where_expression.append("%s >= %s and %s <= %s" % (key, query_min, key, query_max))
elif range_value == 'ngt' : elif range_value == 'ngt' :
where_expression.append("%s <= %s" % (key, query_max)) 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) \ elif isSimpleType(value) or isinstance(value, DateTime) \
or isinstance(value, (list, tuple)): or isinstance(value, (list, tuple)):
# Convert into lists any value which contain a ; # Convert into lists any value which contain a ;
......
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