Commit 9cc915cf authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Eteri

ERP5Catalog: Document dynamic related key name syntax

parent 2b6d9053
......@@ -955,6 +955,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
strict_ related keys only returns documents which are strictly member of
the category.
Syntax:
[default_][strict_][parent_]<base category id>[related_]<column id>
"default_": No effect, useful to avoid static related keys, which would shadow desired dynamic related key.
"strict_": Match only strict relation members, otherwise match non-strict too.
"parent_": Search for documents whose parent have described relation, otherwise search for their immediate relations.
<base_category_id>: The id of an existing Base Category document.
"related_": Search for reverse relationships, otherwise search for direct relationships.
<column_id>: The name of the column to compare values against.
"""
related_key_list = []
base_cat_id_set = set(
......
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