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 ZMSMetaobjManager Manage ZMS meta-object definitions, attributes, and related artefacts.
Function effective_ids Expand a selected id list with package-contained meta-object ids.
Function syncZopeMetaobjAttr Resolve and attach the backing Zope artefact for one meta-object attribute.
def effective_ids(self, ids): (source)

Expand a selected id list with package-contained meta-object ids.

Parameters
self:objectMeta-object manager context.
ids:list | NoneSelected meta-object ids. None or empty means all model keys.
Returns
listSorted effective id list including package members.
def syncZopeMetaobjAttr(self, metaObj, attr): (source)

Resolve and attach the backing Zope artefact for one meta-object attribute.

Parameters
self:objectContext exposing home/object lookup helpers.
metaObj:dictMeta-object mapping containing at least 'id'.
attr:dictMeta-object attribute mapping containing at least 'id' and 'type'.
Returns
NoneNone. The method mutates attr in-place by setting 'ob'.