Closed tseaver closed 5 years ago
I think we could detect and prevent this if we wanted to, but because of the 'usedIn' parameter (especially useful in grouping/complex directives), it's slightly more difficult than just checking for a duplicate name. We also have to check the duplicate usedIn.
However, it's not entirely clear to me if this is a bug or a feature. Yes, you might break something, but you might also fix or override something on purpose. Because it's been the status quo that newer registrations override older registrations for so long (more than a decade), I think we have to lean towards "feature" at this point.
I'm going to go ahead and close this one. If anyone feels otherwise, please feel free to re-open!
In https://bugs.launchpad.net/zope.configuration/+bug/162166, @malthe reported: