module documentation
_zreferableitem.py - ZMS Referable Item Mixin for Internal Reference Handling and Link Validation
Defines ZReferableItem for object persistence, Zope integration, and container protocols. It implements Zope's ObjectManager interface, handles acquisition, and manages object lifecycle.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Class | |
Mixin for internal reference handling in ZMS objects. |
| Function | get |
Extracts internal link references from inline HTML content. |
| Function | get |
Resolves an internal link and returns a dictionary with link metadata. |
| Function | get |
Resolves the internal index_html URL for a given object and internal link. |
| Function | is |
Checks if the given URL is an internal link. |
| Function | is |
Checks if the given URL is a mailto link. |
| Constant | _INLINE |
Undocumented |
| Constant | _INLINE |
Undocumented |
Extracts internal link references from inline HTML content.
| Parameters | |
| text:str | The HTML content. |
| Returns | |
| list | Internal link identifiers found in anchor tags. |
Resolves an internal link and returns a dictionary with link metadata.
| Parameters | |
| self:object | The object context. |
| url:str | The internal link to resolve. |
| Returns | |
| dict | Metadata about the internal link such as data-id, data-url, and data-target. |
Resolves the internal index_html URL for a given object and internal link.
| Parameters | |
| self:object | The object context. |
| url:str | The internal link. |
| ob:object | The referenced object. |
| Returns | |
| str | The resolved index_html URL. |
Checks if the given URL is an internal link.
| Parameters | |
| url:str | The URL to check. |
| Returns | |
| bool | True if the URL is in the internal link format {$...}, False otherwise. |