[Zope-CMF] Small CMFCatalogAware refactoring

Jean-Marc Orliaguet jmo at ita.chalmers.se
Mon Sep 12 08:45:45 EDT 2005


Sidnei da Silva wrote:

>On Mon, Sep 12, 2005 at 02:36:21PM +0200, Jean-Marc Orliaguet wrote:
>| >Still, the place to add indirection would be 'getToolByName'. As Tres
>| >said above, let's not invent another component architecture.
>| 
>| I agree that the correct of doing it is through the equivalent of a
>| getUtility(IToolInterface, name=''), but there is a need for this now.
>
>Why can't we make it so then?
>
>  
>
Yes, I agree this is the best way, but will this be in CMF1.5 or CMF2.0?
It is mostly a matter of being pragmatic at this stage.

>| the _getWorkflowTool() hook was accepted by the way. Why is this different??
>
>I wouldn't say it was accepted, just overlooked.
>  
>

then there is a list of hooks that can be migrated to the new
getToolByName() when it materializes. At least this shows the need for
named utilities in CMF.

regards
/JM



More information about the Zope-CMF mailing list