Commit c61c1961 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added more reserved keywords to prevent trying to build an invalid query from...

Added more reserved keywords to prevent trying to build an invalid query from a query parameter (ex. format).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d3c4bc5
......@@ -79,7 +79,8 @@ except ImportError:
disableReadOnlyTransactionCache = doNothing
UID_BUFFER_SIZE = 300
RESERVED_KEY_LIST = ('where_expression', 'sort-on', 'sort_on', 'sort-order', 'sort_order', 'limit')
RESERVED_KEY_LIST = ('where_expression', 'sort-on', 'sort_on', 'sort-order', 'sort_order', 'limit',
'format', 'search_mode', 'operator')
valid_method_meta_type_list = ('Z SQL Method', 'Script (Python)')
......@@ -192,6 +193,8 @@ class QueryMixin:
class Query(QueryMixin):
"""
This allow to define constraints on a sql column
format - %d/%m/%Y
"""
def __init__(self, format=None, operator=None, range=None,
search_mode=None, **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