Run set events. This event always occurs before the collection is actually mutated.
(collection, item, _sa_initiator, key)
| 1040 | |
| 1041 | |
| 1042 | def __set(collection, item, _sa_initiator, key): |
| 1043 | """Run set events. |
| 1044 | |
| 1045 | This event always occurs before the collection is actually mutated. |
| 1046 | |
| 1047 | """ |
| 1048 | |
| 1049 | if _sa_initiator is not False: |
| 1050 | executor = collection._sa_adapter |
| 1051 | if executor: |
| 1052 | item = executor.fire_append_event(item, _sa_initiator, key=key) |
| 1053 | return item |
| 1054 | |
| 1055 | |
| 1056 | def __del(collection, item, _sa_initiator, key): |
no test coverage detected