Source: factory.core/extend.edit/ObjNotifyEdit.py
Extends ObjNotify with YAML import/export for notify definitions.
| Method | Signature | Description |
|---|---|---|
| load | load(package: Optional[str] = None) -> dict |
Load all notification definitions for a package from the database. |
| list_notifications | list_notifications(package: Optional[str] = None) -> list[dict] |
List all notification codes for a package. |
| export_to_file | export_to_file(filename: Optional[str] = None, package: Optional[str] = None) -> bool |
Export all notification definitions for a package to a YAML file. |
| import_from_data | import_from_data(data: dict, package: Optional[str] = None) -> bool |
Import notification definitions from an in-memory dict. |
| import_from_file | import_from_file(filename: str, package: Optional[str] = None) -> bool |
Import notification definitions from a YAML file. |
Save all notification definitions for a package to a YAML file.
Load notification definitions from a YAML file into the database.
List all notification definitions for a package.