Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model.base: make extending a ConstrainedList atomic
Previously partial additions of elements via a call to `.extend()` were possible, since the `.extend()` method of the superclass simply calls `.append()` for each item, which in turn calls `.insert()`. Thus, if the hook call for one item raised an exception, all previous items had already been added.
- Loading branch information