Re: [Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-05 Thread Philipp von Weitershausen
Stephan Richter wrote: On Tuesday 05 September 2006 07:55, Jim Fulton wrote: On Sep 2, 2006, at 5:33 AM, Philipp von Weitershausen wrote: The order of arguments is the same. I think Jim wants the convenience functions in zope.component (provide*) to go away in favor of the explicit spelling

Re: [Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-05 Thread Stephan Richter
On Tuesday 05 September 2006 07:55, Jim Fulton wrote: > On Sep 2, 2006, at 5:33 AM, Philipp von Weitershausen wrote: > > The order of arguments is the same. I think Jim wants the   > > convenience functions in zope.component (provide*) to go away in   > > favor of the explicit spelling through the

Re: [Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-05 Thread Jim Fulton
On Sep 2, 2006, at 5:33 AM, Philipp von Weitershausen wrote: The order of arguments is the same. I think Jim wants the convenience functions in zope.component (provide*) to go away in favor of the explicit spelling through the global site manager. I think that before we do that, we shoul

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Christian Theune
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: > Christian Theune wrote: Isn't the global site manager something else then zope.component? >>> No. The global site manager (we prefer to call it global component >>> registry nowadays) is defined in zope.component

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Philipp von Weitershausen
Christian Theune wrote: Isn't the global site manager something else then zope.component? No. The global site manager (we prefer to call it global component registry nowadays) is defined in zope.component. It is always htere. Because zope.component uses the current thread-local site-manager, d

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Christian Theune
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Philipp von Weitershausen wrote: > Christian Theune wrote: >> Philipp von Weitershausen wrote: >>> Christian Theune wrote: see subject. What's the reason that all three flavours (still?) exist? I just had a really hard time finding

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Philipp von Weitershausen
Christian Theune wrote: Philipp von Weitershausen wrote: Christian Theune wrote: see subject. What's the reason that all three flavours (still?) exist? I just had a really hard time finding the spelling I need. ztapi.provideUtility(interface, component) is discouraged and should go away. I di

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Christian Theune
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Philipp von Weitershausen wrote: > Christian Theune wrote: >> see subject. What's the reason that all three flavours (still?) exist? I >> just had a really hard time finding the spelling I need. > > ztapi.provideUtility(interface, component) is

[Zope3-dev] Re: registerUtility(component, interface) vs provideUtility(interface, component) vs provideUtility(component, interface)

2006-09-02 Thread Philipp von Weitershausen
Christian Theune wrote: see subject. What's the reason that all three flavours (still?) exist? I just had a really hard time finding the spelling I need. ztapi.provideUtility(interface, component) is discouraged and should go away. I didn't do this for Zope 3.3 because of a lack of time. zo