Add order_gracefully_delete signal (#1454)

This commit is contained in:
Martin Gross
2019-10-18 11:38:26 +02:00
committed by Raphael Michel
parent 33cee65d7f
commit 25a998a510
3 changed files with 17 additions and 1 deletions

View File

@@ -391,6 +391,20 @@ as the first argument.
As with all event-plugin signals, the ``sender`` keyword argument will contain the event.
"""
order_gracefully_delete = EventPluginSignal(
providing_args=["order"]
)
"""
This signal is sent out every time a test-mode order is being deleted. The order object
is given as the first argument.
Any plugin receiving this signals is supposed to perform any cleanup necessary at this
point, so that the underlying oder has no more external constraints that would inhibit
the deletion of the order.
As with all event-plugin signals, the ``sender`` keyword argument will contain the event.
"""
logentry_display = EventPluginSignal(
providing_args=["logentry"]
)