[Zope3-dev] getUtilitiesFor and duplicate names

Jim Fulton jim at zope.com
Fri May 14 17:24:36 EDT 2004


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.

Jim


-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list