This class provides functionality to hide the internals of a request
This class provides functionality to hide the internals of a request
send from the Catalog/ZCatalog to an index._apply_index() method.
send from the Catalog/ZCatalog to an index._apply_index() method.
...
@@ -31,7 +32,6 @@ class parseIndexRequest:
...
@@ -31,7 +32,6 @@ class parseIndexRequest:
the request directory where the index name is the name of the key.
the request directory where the index name is the name of the key.
Additional parameters for an index could be passed as index+"_usage" ...
Additional parameters for an index could be passed as index+"_usage" ...
- dictionary-style parameters specify a query for an index as
- dictionary-style parameters specify a query for an index as
an entry in the request dictionary where the key corresponds to the
an entry in the request dictionary where the key corresponds to the
name of the index and the key is a dictionary with the parameters
name of the index and the key is a dictionary with the parameters
...
@@ -43,16 +43,13 @@ class parseIndexRequest:
...
@@ -43,16 +43,13 @@ class parseIndexRequest:
other parameters depend on the the index
other parameters depend on the the index
- record-style parameters specify a query for an index as instance of the
- record-style parameters specify a query for an index as instance of the
Record class. This happens usually when parameters from a web form use
Record class. This happens usually when parameters from a web form use
the "record" type e.g. <input type="text" name="path.query:record:string">.
the "record" type e.g. <input type="text" name="path.query:record:string">.
All restrictions of the dictionary-style parameters apply to the record-style
All restrictions of the dictionary-style parameters apply to the record-style
parameters
parameters
"""
"""
ParserException='IndexRequestParseError'
ParserException='IndexRequestParseError'
def__init__(self,request,iid,options=[]):
def__init__(self,request,iid,options=[]):
...
@@ -73,13 +70,16 @@ class parseIndexRequest:
...
@@ -73,13 +70,16 @@ class parseIndexRequest:
usage_param=iid+'_usage'
usage_param=iid+'_usage'
ifrequest.has_key(usage_param):
ifrequest.has_key(usage_param):
self.usage=request[usage_param]
self.usage=request[usage_param]
warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)"%usage_param,DeprecationWarning)
warn("ZCatalog query using '%s' detected.\n"
"Using query parameters ending with '_usage' is deprecated.\n"
"Consider using record-style parameters instead "
"(see lib/python/Products/PluginIndexes/README.txt for "