Source: factory.core/extend.edit/ObjMailEdit.py
Edit helper with YAML import/export for email
templates stored in def_email_template.
| Method | Signature | Description |
|---|---|---|
| load | load(template_code: str, package: Optional[str] = None) -> dict |
Read a single template row from |
| list_templates | list_templates(package: Optional[str] = None) -> list[dict] |
List templates visible to the given |
| export_to_file | export_to_file(template_code: str, filename: Optional[str] = None, package: Optional[str] = None) -> bool |
Write a template to YAML under |
| import_from_data | import_from_data(data: dict, package: Optional[str] = None) -> bool |
Upsert a template row from a dict. |
| import_from_file | import_from_file(filename: str, package: Optional[str] = None) -> bool |
Read a YAML file and upsert the template |
Export a template row to YAML.
Import a template from YAML into
List visible email templates.