[Zope3-Users] Utilities

David Johnson djohnson at jsatech.com
Mon Jun 5 02:14:58 EDT 2006


What is the best to find the nearest utility without using a name? 

zapi.getUtility() seems to require a name (though the documentation
implies otherwise). zapi.getAllRegisiteredUtilitiesFor() works but it
seems to me if you have lots of utilities in other contexts, it would
query those as well, and thereby be slow in a large application.

I come across this problem frequently and haven't figured out the best
way to deal with it.





More information about the Zope3-users mailing list