module documentation
_copysupport.py - ZMS Copy and Move Support
This module provides support for copying and moving ZMS objects, including normalization of IDs, handling of BLOB fields, and clipboard operations.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Class | |
Provides copy and move support for ZMS objects, including clipboard operations, BLOB field handling, and normalization of object IDs after paste. |
| Function | normalize |
The ids of copied objects are normalized to the context-node's id_prefix and the ZMS-client's sequence incrementing (acl_sequence). After the objects are moved to their new position their ids are normalized, that means they are reset to a new id that consists of the id_prefix of the target-context and the next increment of the ZMS-object sequence counter. |
| Function | normalize |
Normalize the IDs of moved objects after they are pasted into a new context. |
| Constant | OP |
Undocumented |
| Constant | OP |
Undocumented |
The ids of copied objects are normalized to the context-node's id_prefix and the ZMS-client's sequence incrementing (acl_sequence). After the objects are moved to their new position their ids are normalized, that means they are reset to a new id that consists of the id_prefix of the target-context and the next increment of the ZMS-object sequence counter.
| Parameters | |
| node | context-node |
| id | id_prefix of context-node |
| ids | list of ids to be normalized, '*' for all |
| Note | |
| This function is called after manage_pasteObjs() has moved the objects. | |