Commit 79be74a4 authored by Nicolas Delaby's avatar Nicolas Delaby

Add support of LDIFMethod for SQLCatalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13597 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6460948
...@@ -82,7 +82,7 @@ UID_BUFFER_SIZE = 300 ...@@ -82,7 +82,7 @@ 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', 'selection_domain', 'selection_report') 'format', 'search_mode', 'operator', 'selection_domain', 'selection_report')
valid_method_meta_type_list = ('Z SQL Method', 'Script (Python)') valid_method_meta_type_list = ('Z SQL Method', 'LDIF Method', 'Script (Python)')
full_text_search_modes = { 'natural': '', full_text_search_modes = { 'natural': '',
'in_boolean_mode': 'IN BOOLEAN MODE', 'in_boolean_mode': 'IN BOOLEAN MODE',
...@@ -1473,7 +1473,7 @@ class Catalog( Folder, ...@@ -1473,7 +1473,7 @@ class Catalog( Folder,
#LOG('catalogObjectList', 0, 'method_name = %s' % (method_name,)) #LOG('catalogObjectList', 0, 'method_name = %s' % (method_name,))
method = getattr(self, method_name) method = getattr(self, method_name)
if method.meta_type == "Z SQL Method": if method.meta_type in ["Z SQL Method", "LDIf Method"]:
# Build the dictionnary of values # Build the dictionnary of values
arguments = method.arguments_src arguments = method.arguments_src
for arg in split(arguments): for arg in split(arguments):
......
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