module documentation
ZMSMetaobjManager.py - Meta-object model management for ZMS.
This module provides the meta-object registry used by ZMS to define content types, their attributes, and the associated implementation artefacts (templates, scripts, resources, and other Zope-native objects). It includes helpers for repository import/export, XML import/export, runtime rendering lookup, and synchronization of attribute metadata with persistent objects.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Class | |
Manage ZMS meta-object definitions, attributes, and related artefacts. |
| Function | effective |
Expand a selected id list with package-contained meta-object ids. |
| Function | sync |
Resolve and attach the backing Zope artefact for one meta-object attribute. |
Expand a selected id list with package-contained meta-object ids.
| Parameters | |
| self:object | Meta-object manager context. |
| ids:list | None | Selected meta-object ids. None or empty means all model keys. |
| Returns | |
| list | Sorted effective id list including package members. |
Resolve and attach the backing Zope artefact for one meta-object attribute.
| Parameters | |
| self:object | Context exposing home/object lookup helpers. |
| meta | Meta-object mapping containing at least 'id'. |
| attr:dict | Meta-object attribute mapping containing at least 'id' and 'type'. |
| Returns | |
| None | None. The method mutates attr in-place by setting 'ob'. |