[Zope3-Users] Registered utility is never found

FB fbo2 at gmx.net
Tue Dec 12 07:26:52 EST 2006


Hi,

On Mon, Dec 11, 2006 at 11:41:25PM +0100, David Johnson wrote:
> >Hi,
> >
> >is there any reason why a registered utility which is persistently stored inside the site
> >manager is never found via zapi.getUtility(IMyInterface) ?
> It's been my experience this is caused by registering with a name rather than leaving the registration 
> blank. (This confused me for the longest time).

As shown in the sample code, the registration is done with name='' .

Regards,

Frank


More information about the Zope3-users mailing list