EHRI/ehri-rest — pull request #81 by mikesname (2014-12-14 19:48:02+00:00)
Title: Remove erroneous handling of IntegrityError from higher level API classes.

This is a fix for bug #80.

@bencomp @lindareijnhoudt this is just cleanup (no functional change) but you should probably merge it ASAP because it does touch a few files.

The `IntegrityError` is thrown by the lower level graph manager classes
when there is an ID collision, but the `BundleDAO` converts this into
a `ValidationError` to simplify the create-or-update API. However, some
method signatures where not updated to reflect this, so higher level
classes have to handle it.

This has now been fixed by removing the use of `IntegrityError` from
the `Crud` interface, and from all the places that handled it. Annoyingly,
only because the CRUD view classes conform to an interface was this not
a compile error (handling an exception which was not thrown.)