Skip to content

Commit

Permalink
Suppress events when importing ordering to not trigger ContainerModif…
Browse files Browse the repository at this point in the history
…iedEvent
  • Loading branch information
pbauer committed Nov 12, 2024
1 parent 6865957 commit af3539c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ Changelog

- Add and run a black version, that is compatible with Python 2.
[pgrunewald]

- Make zcml conditions more specific so that migration aliases don't trigger them
[reinhardt]

- Suppress events when importing ordering to not trigger ContainerModifiedEvent.
[pbauer]

1.12 (2024-03-08)
-----------------
Expand Down
2 changes: 1 addition & 1 deletion src/collective/exportimport/import_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def import_ordering(self, data):
ordered = IOrderedContainer(obj.__parent__, None)
if not ordered:
continue
ordered.moveObjectToPosition(obj.getId(), item["order"])
ordered.moveObjectToPosition(obj.getId(), item["order"], suppress_events=True)
if not index % 1000:
logger.info(
u"Ordered {} ({}%) of {} items".format(
Expand Down

0 comments on commit af3539c

Please sign in to comment.