Decorator that ensures _mark_as_changed method gets called.
(parent_method)
| 15 | |
| 16 | |
| 17 | def mark_as_changed_wrapper(parent_method): |
| 18 | """Decorator that ensures _mark_as_changed method gets called.""" |
| 19 | |
| 20 | def wrapper(self, *args, **kwargs): |
| 21 | # Can't use super() in the decorator. |
| 22 | result = parent_method(self, *args, **kwargs) |
| 23 | self._mark_as_changed() |
| 24 | return result |
| 25 | |
| 26 | return wrapper |
| 27 | |
| 28 | |
| 29 | def mark_key_as_changed_wrapper(parent_method): |