Adapters registered for * (wildcard) do not adapt to base types (str, int etc.)

Bug #139690 reported by Malthe Borch
6
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Medium
Unassigned
zope.component
Won't Fix
Medium
Unassigned

Bug Description

Register an adapt like so:

<adapter
   for="*"
   provides="IMyInterface"
   factory=".test" />

def test(obj): pass

Observe that IMyInterface("hello") results in a ComponentLookupError.

Revision history for this message
ChrisW (chris-simplistix) wrote :

I can confirm this.

I mailed this zope3-dev mailing about this some time ago:
http://mail.zope.org/pipermail/zope3-dev/2007-January/021576.html

I seem to remember the problem is with the underlying adapter machinery and not the zcml...

Changed in zope3:
importance: Undecided → Medium
status: New → Confirmed
Tres Seaver (tseaver)
Changed in zope.component:
status: New → Confirmed
importance: Undecided → Medium
Changed in zope3:
status: Confirmed → Won't Fix
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.component:
status: Confirmed → 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.