zope.component 3.5.0 not allowing zope:utility declarations without a "provides" attribute

Bug #251865 reported by tmog
4
Affects Status Importance Assigned to Milestone
Zope 3
Fix Released
Undecided
Unassigned

Bug Description

I get a TypeError("Missing 'provides' attribute") on the first utility registration.

I notice that in zcml.py:utility() is is never checked what the "factory" provides, only the "component" is checked.

Is this the intended behavior?

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Bug in zope.component 3.5.0. I've got the fix ready.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Fixed in rev 88820. I made a 3.5.1 release tag, but don't have the privileges to upload it to pypi.

Changed in zope3:
status: New → Fix Committed
Changed in zope3:
status: Fix Committed → Fix Released
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.