Re: [Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Sidnei da Silva
On Mon, Sep 12, 2005 at 09:10:02AM -0400, Tres Seaver wrote: | Those won't be named utilities; they will be adapters, with | "tool-centric" interfaces. For code which currently spells the lookup:: | | catalog = getToolByName(some_context, 'portal_catalog') | | I prefer:: | | catalog = ICat

[Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Jean-Marc Orliaguet
Tres Seaver wrote: > Jean-Marc Orliaguet wrote: > > >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. > > > Those won't be named utilities; they will be adapters, with > "tool-centric

Re: [Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sidnei da Silva wrote: > On Mon, Sep 12, 2005 at 09:10:02AM -0400, Tres Seaver wrote: > | -BEGIN PGP SIGNED MESSAGE- > | Hash: SHA1 > | > | Jean-Marc Orliaguet wrote: > | > | > then there is a list of hooks that can be migrated to the new > |

Re: [Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Sidnei da Silva
On Mon, Sep 12, 2005 at 09:10:02AM -0400, Tres Seaver wrote: | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | Jean-Marc Orliaguet wrote: | | > 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 ut

[Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jean-Marc Orliaguet wrote: > 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. Those won't be named utilities; they will be adapters, with

Re: [Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Jean-Marc Orliaguet
Tres Seaver wrote: > Jean-Marc Orliaguet wrote: > > >Julien fixed a bug. Only poorly designed software implements hardcoded > >references to paths ('portal_catalog'). And he needed it to implement a > >separate catalog for portlets. So let's move on > > > 'portal_catalog' is not a hard-coded r

[Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread yuppie
Tres Seaver wrote: Julien's refactoring is not a bugfix, but a refactoring, intended to allow the possibility of using more than one catalog. Julien Anguenot wrote: It's speculation at this stage. Note, we do *not* support multiple catalogs yet. This is something we *could* support if eventual

[Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jean-Marc Orliaguet wrote: > Julien fixed a bug. Only poorly designed software implements hardcoded > references to paths ('portal_catalog'). And he needed it to implement a > separate catalog for portlets. So let's move on 'portal_catalog' is no

[Zope-CMF] Re: Small CMFCatalogAware refactoring

2005-09-12 Thread yuppie
Sidnei da Silva wrote: On Mon, Sep 12, 2005 at 01:46:00PM +0200, Jean-Marc Orliaguet wrote: | Julien fixed a bug. Only poorly designed software implements hardcoded | references to paths ('portal_catalog'). And he needed it to implement a | separate catalog for portlets. So let's move on Sor