[Zope3-dev] Re: unnamed local utility

Garrett Smith garrett at mojave-corp.com
Fri May 14 11:57:50 EDT 2004


You can leave the utility name empty when you reigster it. You can then 
look it up using:

   zapi.getUtility(context, IMyProvidedIface)

In that call, name == '' by default.

  -- Garrett


Roger Ineichen wrote:
> I need to make shure that a 
> utility is just available once in a site like a service.
> This means it's a unnamed utility. Right?
> 
> What should I do?
> Do I have to write a service instead of a utility
> for to make shure there is just one instance available in a site?
> 
> Regards
> Roger Ineichen
> _____________________________
> END OF MESSAGE
> 
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: http://mail.zope.org/mailman/options/zope3-dev/zope-zope3-dev%40m.gmane.org
> 
> 





More information about the Zope3-dev mailing list