Skip to content

Commit f99896f

Browse files
committed
[CHANGELOG] Add cloning behaviour changes
1 parent f2b9f88 commit f99896f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ XML files via lxml. See #301.
2424
The `odmlconversion` convenience console script has been added to convert multiple
2525
previous odML version files to the latest odML version.
2626

27+
## Changes in cloning behaviour
28+
29+
When cloning a `Section` or a `Property` by default the id of any object is changed
30+
to a new UUID. The cloning methods now feature a new `keep_id` attribute. If set to
31+
`True`, the cloned object and any cloned children retain their original id. This
32+
is meant to create exact copies of Section-Property trees in different documents.
33+
34+
## Additional validation
35+
36+
When a document is saved, a new validation check makes sure, that a document
37+
contains only unique UUIDs this is required due to the introduction of creating
38+
clones with identical ids.
39+
2740

2841
# Version 1.4.1
2942

0 commit comments

Comments
 (0)