MCMS Pages
mcms_pages represents pages within the MCMS component-tree architecture. A page's visual composition is represented by a single root component tree, using the canonical RenderTree model.
Responsibilities established by the ADRs
- Represent a page as a composition of RenderNodes.
- Associate the page with a root RenderNode composition.
- Use
RenderTreeas the canonical representation of that composition. - Support the same runtime editing, styling, and rendering model used by other component compositions.
- Allow templates to be used as authoring-time blueprints and absorbed into the page tree.
Page composition
A page references a single root component instance, which composes the page through component relationships.
Page
|
v
Root component / RenderTree
|
+--> Header
+--> Hero
+--> Content sections
+--> Footer
There is no separate page-layout tree. Every visible element is represented through the RenderNode tree.
Templates and pages
mcms_templates provides reusable component compositions. When an author selects a template:
- The template's
RenderTreeis cloned. - The clone receives new node identifiers.
- The cloned tree is inserted into the page's
RenderTree. - The inserted nodes become ordinary page-owned nodes.
Templates are authoring-time blueprints. A page does not retain a mandatory live template dependency after insertion, and changes to the source template do not automatically propagate to existing pages.
A page ultimately contains one RenderTree.
Render-tree invariants
Page composition relies on the invariants maintained by mcms_render:
- Each node has a unique identity.
- A node belongs to one tree.
- A node has at most one parent.
- Parent and child indexes remain consistent.
- The tree has a valid root and ordering.
- Cycles are not permitted.
- Cloning and insertion maintain identifier consistency.
Architectural integrations
| Package | Relationship |
|---|---|
mcms_core |
Shared registry and exception infrastructure |
mcms_components |
Defines the components used to construct a page |
mcms_render |
Owns the canonical RenderTree and RenderNode representation |
mcms_templates |
Supplies reusable compositions that are instantiated into a page tree |
mcms_design |
Supplies visual presentation definitions |
mcms_data |
Resolves dynamic data before rendering |
Application configuration
The supplied ADRs do not name page-specific global settings, URL configuration, or an apps import path.
Dependencies
Architectural integrations
The most important architectural dependency is mcms_render, because the page's composition is represented by its RenderTree. The other integrations above describe the broader authoring and rendering flow; they are not necessarily direct Python dependencies.
Python distribution dependencies
All MCMS Packages rely on django
Development
uv run pytest packages/mcms-pages/tests
Run Ruff and mypy using the repository's configured commands.
Metadata
Release files for mcms-pages 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcms_pages-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcms_pages-0.1.0-py3-none-any.whl |
Release files / mcms_pages-0.1.0-py3-none-any.whl
| Download URL | mcms_pages-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
929193716505b895a2f90835d9bc2c3760ef30541ddd147e9bf129561ba8b14f
|
|
BLAKE2b-256 checksum How to use checksums |
24f630b8319045b7c07430a7ef29d178e32af4ac423247e489efeae78e626288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"21.3","id":"virginia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for mcms-pages 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.