[Zope3-dev] getUtilitiesFor and duplicate names

Jim Fulton jim at zope.com
Fri May 14 17:18:37 EDT 2004


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.

Can you create a test case that demonstrates this?

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