[Zope3-dev] Re: wildcard adapter

Chris Withers chris at simplistix.co.uk
Fri Jan 19 18:02:30 EST 2007


Tres Seaver wrote:
>>  >>> provideAdapter(adapter,adapts=(None,None),provides=ITest)
>>  >>> getMultiAdapter((1,1),ITest)
>> Traceback (most recent call last):
>> ...
>> zope.component.interfaces.ComponentLookupError:
>>   ((1, 1), <InterfaceClass __main__.ITest>, u'')
>>
>> Oh dear, what have I done wrong here?
> 
> The "order" of your adapter registration is *one*, 

Does the following not register for an order of two?

provideAdapter(adapter,adapts=(None,None),provides=ITest)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope3-dev mailing list