Previously yuppie wrote:
> Charlie Clark wrote:
> >
> >Am 23.06.2007 um 14:53 schrieb yuppie:
> >
> >>There are 10 tools in CMF that are not ready for being used as 
> >>utilities, they have to be used the old way until they are fixed:
> >>
> >>content_type_registry
> >>cookie_authentication
> >>portal_actions
> >>portal_calendar
> >>portal_catalog
> >>portal_skins
> >>portal_types
> >>portal_uidhandler
> >>portal_url
> >>portal_workflow
> >
> >Taking you up on the *any* feedback thing. I have a skin script that 
> >uses the portal_catalog traditionally via getToolByName. I don't know 
> >how to use getUtility from within a script but getToolByComponentName 
> >raises
> >
> >Error Type: ComponentLookupError
> >Error Value: ICatalogTool
> >
> >As I don't like getting deprecation errors I've changed tack and have 
> >moved to context.portal_catalog...
> 
> Please don't do that. For the tools in the list quoted above 
> getToolByName is your best choice, at least for now.

And there are situations where getToolByName may work when plain
acquisition does not if you have nested acquisition chains.

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to