Commit 9b031bd2 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Catalog: Document dynamic related key name syntax

parent 6fd79435
...@@ -955,6 +955,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -955,6 +955,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
strict_ related keys only returns documents which are strictly member of strict_ related keys only returns documents which are strictly member of
the category. 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 = [] related_key_list = []
base_cat_id_set = set( 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