Source: factory.core/extend.delegate/ObjPatch.py
Mixin providing parameter-patching and text processing.
Resolves $term$ placeholders in strings by looking
up user, package, date/time, config, and database
values. Mixed into Object via MRO -- no
...
| Method | Signature | Description |
|---|---|---|
| patch_all | patch_all(term: str, key: str, value: str) -> str |
Replace every occurrence of key with value. |
| patch_paramBuffer | patch_paramBuffer(term: str) -> str |
Resolve term against the global parameter cache. |
| patch_paramRun | patch_paramRun(term: str, depth = 0, local_db = 0) -> str |
Resolve a single $term$ placeholder. |
| patch_param | patch_param(term: str, depth = 0) -> str |
Patch all $...$ placeholders in term. |
| process_text | process_text(text: str = '') -> str |
Patch placeholders then run text processors. |