package documentation

__init__.py - ZMS product initialization module.

This module handles the core initialization of the ZMS (Zope Management System) product during Zope startup. It is responsible for:

  • Registering ZMS content types (ZMS, ZMSCustom, ZMSSqlDb, ZMSLinkContainer, ZMSLinkElement, MediaDb, ZMSAttributeContainer) with the Zope application context to make them available for object instantiation.
  • Configuring language resources by parsing the _language.yaml import file and automatically generating language-specific JavaScript files (i18n/<lang>.js) for client-side internationalization support.
  • Setting up session storage infrastructure by ensuring the existence of temp_folder and session_data containers for temporary data storage during user sessions.
  • Performing automated minification of static assets (JavaScript and CSS files) based on configuration parameters to reduce file sizes and improve performance. This includes generation of hash values for cache-busting.
  • Registering language dictionaries and configuration dictionaries in the Zope misc container (OFS.misc_.misc_.zms) for global access across the application.
  • Monkey-patching Products.CMFCore.zcml.registerDirectory() to support directory registration outside of package context, and registering additional file extensions (xlsx, xls, doc, docx, ppt, pptx, svg, etc.) for proper content type handling.

Note: The module expects configuration files to be present at specific paths within the package home directory, particularly version.txt and import/_language.yaml.

License: GNU General Public License v2 or later, Organization: ZMS Publishing

Module coauthor No module docstring; 0/1 variable, 6/6 functions, 1/1 class documented
Module content_extraction content_extraction.py - ZMS Content Extraction Toolkit for Search Indexing
Module IZMSActionListContributor IZMSActionListContributor.py
Module IZMSCatalogAdapter IZMSCatalogAdapter.py
Module IZMSCatalogConnector IZMSCatalogConnector.py
Module IZMSConfigurationProvider IZMSConfigurationProvider.py
Module IZMSFormatProvider IZMSFormatProvider.py
Module IZMSLLMConnector IZMSLLMConnector.py
Module IZMSMetacmdProvider IZMSMetacmdProvider.py
Module IZMSMetamodelProvider IZMSMetamodelProvider.py
Module IZMSRepositoryManager IZMSRepositoryManager.py
Module IZMSRepositoryProvider IZMSRepositoryProvider.py
Module IZMSWorkflowProvider IZMSWorkflowProvider.py
Module llmapi ZMS LLM API utility module
Module llmtools llmtools.py – ZMS tool registry for LLM function/tool calling.
Module mock_http mock_http.py
Module pilutil pilutil.py
Module repositoryutil repositoryutil.py - ZMS repository utility module.
Module rest_api rest_api.py
Module standard standard.py
Module svgutil svgutil.py
Module yamlutil yamlutil.py - Utility helpers for YAML.
Module zms zms.py - ZMS Root Object and Lifecycle Management
Module ZMSCharformatManager ZMSCharformatManager.py - ZMS Character Format Manager
Module zmscontainerobject zmscontainerobject.py - ZMS Container Object
Module zmscustom zmscustom.py - ZMS Custom Content Class for Site-Specific Customization and Plugin Extensions
Module ZMSFilterManager ZMSFilterManager.py - ZMS Filter Manager
Module ZMSFormatProvider ZMSFormatProvider.py - ZMS Format Provider
Module ZMSFormatProviderAcquired ZMSFormatProviderAcquired.py - ZMS Acquired Format Provider
Module zmsindex zmsindex.py - ZMS Object Index
Module ZMSItem ZMSItem.py - ZMS Base Content Object
Module zmslinkcontainer zmslinkcontainer.py
Module zmslinkelement zmslinkelement.py
Module ZMSLLMConnector ZMSLLMConnector.py - ZMS LLM Connector for AI/LLM Integration
Module zmslog zmslog.py - ZMS Log Viewer
Module ZMSMetacmdProvider ZMSMetacmdProvider.py - ZMS Meta-Command Provider
Module ZMSMetacmdProviderAcquired ZMSMetacmdProviderAcquired.py - ZMS Acquired Metacommand Provider
Module ZMSMetadictManager ZMSMetadictManager.py - ZMS Meta-Dictionary Manager
Module ZMSMetamodelProvider ZMSMetamodelProvider.py - ZMS Metamodel Provider
Module ZMSMetaobjManager ZMSMetaobjManager.py - Meta-object model management for ZMS.
Module zmsobject zmsobject.py - Base ZMS object implementation.
Module zmsproxyobject zmsproxyobject.py - ZMS Proxy Object
Module ZMSRepositoryManager ZMSRepositoryManager.py - ZMS Repository Manager
Module zmssqldb zmssqldb.py - Relational Database Content Type for ZMS
Module ZMSTextformat ZMSTextformat.py - Text-format model and rendering helpers for ZMS rich-text output.
Module ZMSTextformatManager ZMSTextformatManager.py - ZMS Text-format Manager
Module zmstrashcan zmstrashcan.py- Trashcan Management and Deletion Recovery
Module ZMSWorkflowActivitiesManager ZMSWorkflowActivitiesManager.py - ZMS Workflow Activities Manager
Module ZMSWorkflowItem ZMSWorkflowItem.py - ZMS Workflow Item
Module ZMSWorkflowProvider ZMSWorkflowProvider.py - Workflow management provider for ZMS content objects.
Module ZMSWorkflowProviderAcquired ZMSWorkflowProviderAcquired.py - Acquired Workflow Provider for ZMS
Module ZMSWorkflowTransitionsManager ZMSWorkflowTransitionsManager.py - ZMS Workflow Transitions Manager
Module ZMSZCatalogAdapter ZMSZCatalogAdapter.py - Catalog adapter implementation for indexing ZMS content.
Module ZMSZCatalogConnector ZMSZCatalogConnector.py - ZMS Catalog Connector for ZCatalog Integration
Module zopeutil zopeutil.py - ZMS Zope Utility for Object Management and Data Handling
Module _accessmanager _accessmanager.py - Access and permission management for ZMS
Module _blobfields _blobfields.py - Blob, Image, and File Field Management for ZMS
Module _builder _builder.py - XML builder for ZMS object tree construction
Module _cachemanager _cachemanager.py - Request-local caching helpers used across ZMS managers.
Module _conf _conf.py - ZMS Configuration Class
Module _confmanager _confmanager.py - ZMS Configuration Manager
Module _copysupport _copysupport.py - ZMS Copy and Move Support
Module _deprecatedapi _deprecatedapi.py - ZMS Deprecated API
Module _enummanager _enummanager.py - ZMS Enumeration Manager
Module _exportable _exportable.py - ZMS Exportable Mixin
Module _fileutil _fileutil.py - ZMS File System Utilities
Module _filtermanager _filtermanager.py - ZMS Import/Export Filter Pipeline Helpers
Module _globals _globals.py - ZMS Global Constants and Utilities
Module _importable _importable.py - ZMS Importable Mixin
Module _mediadb _mediadb.py - ZMS Media Data Management
Module _mimetypes _mimetypes.py - ZMS MIME Type Icon Mappings
Module _multilangmanager _multilangmanager.py - ZMS Multi-Language Manager
Module _objattrs _objattrs.py - ZMS Object Attributes Management
Module _objchildren _objchildren.py - ZMS Object Children Management
Module _objinputs _objinputs.py - ZMS Object Input Field Generation and Form Rendering
Module _objtypes _objtypes.py - ZMS Object Type Definitions and Meta-Class Registration
Module _pathhandler _pathhandler.py - ZMS Path Handler for URL Routing and Traversal
Module _sequence _sequence.py - ZMS Sequence Object for Unique ID Generation
Module _textformatmanager _textformatmanager.py - ZMS Text Format Manager for Content Formatting and Rendering
Module _version _version.py - ZMS Version Information
Module _versionmanager _versionmanager.py - ZMS Version Manager for Content Versioning and Workflow
Module _xmllib _xmllib.py - ZMS XML Parsing and Serialization Utilities
Module _zcatalogmanager _zcatalogmanager.py - ZMS Catalog Manager for Search Query Formatting and Object Traversal
Module _ziputil _ziputil.py - ZMS ZIP Utility for Exporting and Importing ZODB Objects
Module _zmi_actions_util _zmi_actions_util.py - ZMS ZMI Actions Utility for Action List Generation and Command Handling
Module _zmsattributecontainer _zmsattributecontainer.py - ZMS Attribute Container for Custom Attribute Storage and Management
Module _zreferableitem _zreferableitem.py - ZMS Referable Item Mixin for Internal Reference Handling and Link Validation

From __init__.py:

Function create_session_storage_if_neccessary Ensure containers for temporary data.
Function getData Undocumented
Function getText Undocumented
Function initialize Initialize the product.
Function registerDirectory Add a new directory to the registry.
Function translate_path translate path
Variable _directory_regs Undocumented
def create_session_storage_if_neccessary(context): (source)

Ensure containers for temporary data.

def getData(cell): (source)

Undocumented

def getText(nodelist): (source)

Undocumented

def initialize(context): (source)

Initialize the product.

def registerDirectory(_context, name, directory=None, recursive=False, ignore=ignore): (source)

Add a new directory to the registry.

def translate_path(s): (source)

translate path

_directory_regs: list = (source)

Undocumented