[Zope3-Users] Registered utility is never found

Garanin Michael garanin at m-lan.ru
Tue Dec 12 09:29:55 EST 2006


FB wrote:
> On Tue, Dec 12, 2006 at 04:42:56PM +0300, Garanin Michael wrote:
>   
>> traceback, please.
>>     
>
> Hmm ... how? It just doesn't return the utility as expected (it returns
> None). There is no error shown in any way.
>
>   

from APIDOC:
"""

    * *|getUtility(interface, name='', context=None)| *

      .....         If one is not found, raises
      ComponentLookupError.               <==== must be EXCEPTION !!!


"""

There are not "ComponenLookupError" exception? Why you find bug in 
"getUtility"? ;-)


(sorry my english)



More information about the Zope3-users mailing list