Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-23 Thread Dieter Maurer
Charlie Clark wrote at 2008-11-20 20:33 +0100: > ... >Agreed. If third party tools have problems, then they should provide >the solutions. The Plone people are much more open to integrate third party solutions (a good thing in principle). But, they have only limited control over third party solu

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-20 Thread Charlie Clark
Am 20.11.2008 um 12:42 schrieb yuppie: > Several tool methods have to be replaced by view code before we can > register all tools as utilities. It's already on my radar as soon as I get some time to catch my breath (and complete my two other minor tasks first!) >> In view of this, one can und

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-20 Thread yuppie
Dieter Maurer wrote: > yuppie wrote at 2008-11-18 12:00 +0100: >> Dieter Maurer wrote: >>> If they would, local utilities were much nearer to tools and >>> the transition would be facilitated. >> They would be nearer to tools, but also more distant from zope 3 >> utilities. I doubt that would real

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-19 Thread Ross Patterson
Martin Aspeli <[EMAIL PROTECTED]> writes: > yuppie wrote: >> Hi Dieter! >> >> >> Dieter Maurer wrote: >>> Thus, why do local utilities registered by Five (i.e. these utilities are >>> for Zope2 use) do not provide access to the request in the normal >>> Zope2 way? >> >> That's what we tried fir

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-19 Thread Dieter Maurer
Martin Aspeli wrote at 2008-11-18 16:25 +: > ... >This won't solve this particular problem, but it may be worth looking at >how other frameworks work. Pylons, for example, has the request >available as "global" variable - actually a thread-local. Zope could set >the request as a thread local

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-19 Thread Dieter Maurer
yuppie wrote at 2008-11-18 12:00 +0100: >Dieter Maurer wrote: >> Thus, why do local utilities registered by Five (i.e. these utilities are >> for Zope2 use) do not provide access to the request in the normal >> Zope2 way? > >That's what we tried first. But it turned out that Zope 3's site manager

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-18 Thread Martin Aspeli
yuppie wrote: > Hi Dieter! > > > Dieter Maurer wrote: >> Thus, why do local utilities registered by Five (i.e. these utilities are >> for Zope2 use) do not provide access to the request in the normal >> Zope2 way? > > That's what we tried first. But it turned out that Zope 3's site manager > co

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-18 Thread yuppie
Hi Dieter! Dieter Maurer wrote: > Thus, why do local utilities registered by Five (i.e. these utilities are > for Zope2 use) do not provide access to the request in the normal > Zope2 way? That's what we tried first. But it turned out that Zope 3's site manager code caches the utilities across

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-17 Thread Dieter Maurer
Wichert Akkerman wrote at 2008-11-17 08:21 +0100: > ... >I'm sure CMF import/export steps are fine. The CMF tools are not, and >third party products use those in their steps. That is exactly the >problem we where seeing in Plone, and which is why I removed the utility >registration. Zope is a Web

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Wichert Akkerman
Previously Jens Vagelpohl wrote: > On Nov 16, 2008, at 22:30 , Wichert Akkerman wrote: > > Previously yuppie wrote: > >> I don't like to remove CMF's portal_setup registration *if* CMF > >> itself > >> is not affected by this issue. > > > > Imho registering portal_setup as a utility as long as an

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 16, 2008, at 22:30 , Wichert Akkerman wrote: > Previously yuppie wrote: >> I don't like to remove CMF's portal_setup registration *if* CMF >> itself >> is not affected by this issue. > > Imho registering portal_setup as a utility as long as

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Charlie Clark
Am 16.11.2008 um 22:30 schrieb Wichert Akkerman: > Imho registering portal_setup as a utility as long as any CMF tool > uses > self.REQUEST is problematic since it makes it impossible for > import/export steps to use such tools. Surely, that's what deprecation messages are for? We do want to m

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Wichert Akkerman
Previously yuppie wrote: > I'm not sure if the import/export steps used by CMF are clean or if > nobody recognized the issue because nobody runs import/export steps from > a portal_setup tool that was looked up as utility. Maybe the issue just > shows up in combination with portal_quickinstall?

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 16, 2008, at 18:11 , yuppie wrote: > I don't like to remove CMF's portal_setup registration *if* CMF itself > is not affected by this issue. +1 jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkkgiUwACgkQRAx

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread yuppie
Hanno Schlichting wrote: > yuppie wrote: >> Questions: Is there a good reason why Plone doesn't register >> portal_setup as utility? Does the same reason apply to CMFDefault? Do we >> have to support registered and not registered portal_setup tools? > > The reason why we don't register the setup

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Wichert Akkerman
Previously Charlie Clark wrote: > > Am 16.11.2008 um 16:17 schrieb yuppie: > > > Questions: Is there a good reason why Plone doesn't register > > portal_setup as utility? Does the same reason apply to CMFDefault? > > Do we > > have to support registered and not registered portal_setup tools? >

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Wichert Akkerman
Previously Hanno Schlichting wrote: > yuppie wrote: > > CMFDefault registers portal_setup as utility. Some code in CMF depends > > on that. > > > > Plone doesn't doesn't register portal_setup as utility: > > http://dev.plone.org/plone/changeset/18763 > > > > That causes some trouble in Plone: >

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Hanno Schlichting
yuppie wrote: > CMFDefault registers portal_setup as utility. Some code in CMF depends > on that. > > Plone doesn't doesn't register portal_setup as utility: > http://dev.plone.org/plone/changeset/18763 > > That causes some trouble in Plone: > http://dev.plone.org/plone/ticket/7714 > > The same

Re: [Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread Charlie Clark
Am 16.11.2008 um 16:17 schrieb yuppie: > Questions: Is there a good reason why Plone doesn't register > portal_setup as utility? Does the same reason apply to CMFDefault? > Do we > have to support registered and not registered portal_setup tools? Does this relate to the discussions (earlier t

[Zope-CMF] [dev] Should portal_setup be registered as utility?

2008-11-16 Thread yuppie
Hi! CMFDefault registers portal_setup as utility. Some code in CMF depends on that. Plone doesn't doesn't register portal_setup as utility: http://dev.plone.org/plone/changeset/18763 That causes some trouble in Plone: http://dev.plone.org/plone/ticket/7714 The same issue was reported as CMF b