Duplicate directive registration allowed

Bug #162166 reported by Malthe Borch
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.configuration
Won't Fix
Undecided
Unassigned

Bug Description

In zope/configuration/config.py:register it seems that it isn't being
asserted that no previous registration of a directive with the same
name has happened.

This might be desirable (not sure why) and currently happens for these
directives:

('http://namespaces.zope.org/meta', u'directive')
('http://namespaces.zope.org/meta', u'groupingDirective')
('http://namespaces.zope.org/meta', u'complexDirective')
('http://namespaces.zope.org/zope', u'securityPolicy')

So for instance, if Five registers the <browser:viewlet> then there's
nothing to prevent another package from including zope.viewlet's
meta.zcml which will then override that directive, breaking viewlet
support in Zope 2.

Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.configuration:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.