[Zope3-dev] Re: getUtilitiesFor and duplicate names
Garrett Smith
garrett at mojave-corp.com
Fri May 14 17:33:28 EDT 2004
Jim Fulton wrote:
> Jim Fulton wrote:
>
>> Garrett Smith wrote:
>>
>>> getUtilitiesFor returns all active utilities that provide a specified
>>> interface, including utilties with the same name (located in
>>> different sites).
>>>
>>> This means its possible to list utilites that you could not lookup
>>> via getUtility for a particular context.
>>>
>>> Is this by design?
>>
>>
>>
>> No
>>
>> This is a bug. I'm also rather surprised.
>
>
> In fact, looking at the implmentation of getUtilitiesFor,
> I don't see how this could happen.
I think the problem is in my test setup -- I'm getting strange results
in another area :-\
I'll post with a test case if I can't resolve this (sorry for false
negative :)
More information about the Zope3-dev
mailing list