module documentation
_zmi_actions_util.py - ZMS ZMI Actions Utility for Action List Generation and Command Handling
Provides zmi_actions, zmi_basic_actions, zmi_insert_actions helper functions for general-purpose ZMS utilities and shared helper functions. It provides common patterns like type checking, data transformation, and error handling.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Function | zmi |
Return list of actions. |
| Function | zmi |
Returns sorted list of basic actions (undo, delete, cut, copy, paste, move up/down) and custom commands. |
| Function | zmi |
Returns list of custom commands. |
| Function | zmi |
Returns sorted list of insert actions. |
Return list of actions.
| Parameters | |
| container:object | The container for which to compute actions. |
| context:object | The context object for which to compute actions. May be None. |
| attr | The attribute ID for which to compute actions. Default is 'e' (edit). |
| Returns | |
| list | List of action tuples (id, label, url, icon_clazz, tooltip). |
Returns sorted list of basic actions (undo, delete, cut, copy, paste, move up/down) and custom commands.