Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Martin Aspeli
On 9 March 2011 14:09, Wichert Akkerman wrote: > On 3/9/11 15:03 , Hanno Schlichting wrote: >> On Wed, Mar 9, 2011 at 3:00 PM, Wichert Akkerman  wrote: >>> You really want to use the ZCA for every occurance of a string->object >>> mapping? Really? >> >> As long as Zope doesn't have a central confi

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Godefroid Chapelle
Le 09/03/11 15:09, Wichert Akkerman a écrit : > It all looks like a workaround > for a missing feature in plone.testing, which won't even help much since > plone.testing needs to support older GS releases as well. > > Wichert. The change I made is internal implementation only. IOW, it can go into

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Wichert Akkerman
On 3/9/11 15:03 , Hanno Schlichting wrote: > On Wed, Mar 9, 2011 at 3:00 PM, Wichert Akkerman wrote: >> You really want to use the ZCA for every occurance of a string->object >> mapping? Really? > > As long as Zope doesn't have a central configuration registry like > Pyramid has, it unfortunately

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Hanno Schlichting
On Wed, Mar 9, 2011 at 3:00 PM, Wichert Akkerman wrote: > You really want to use the ZCA for every occurance of a string->object > mapping? Really? As long as Zope doesn't have a central configuration registry like Pyramid has, it unfortunately makes sense. It's massive overkill and we shouldn't

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Wichert Akkerman
On 3/9/11 14:41 , Laurence Rowe wrote: > On 8 March 2011 16:26, Wichert Akkerman wrote: >> On 2011-3-8 17:08, Godefroid Chapelle wrote: >>> Hello, >>> >>> GenericSetup has global registries for profiles and steps. >>> >>> They are a PITA when testing. >>> >>> For instance, plone.app.testing has to

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Laurence Rowe
On 8 March 2011 16:26, Wichert Akkerman wrote: > On 2011-3-8 17:08, Godefroid Chapelle wrote: >> Hello, >> >> GenericSetup has global registries for profiles and steps. >> >> They are a PITA when testing. >> >> For instance, plone.app.testing has to make a complicated dance to >> record and restor

Re: [Zope-CMF] GenericSetup global registries

2011-03-08 Thread Wichert Akkerman
On 2011-3-8 17:43, Godefroid Chapelle wrote: > Le 08/03/11 17:26, Wichert Akkerman a écrit : >> On 2011-3-8 17:08, Godefroid Chapelle wrote: Hello, GenericSetup has global registries for profiles and steps. They are a PITA when testing. For instance, plone

Re: [Zope-CMF] GenericSetup global registries

2011-03-08 Thread Godefroid Chapelle
Le 08/03/11 17:26, Wichert Akkerman a écrit : > On 2011-3-8 17:08, Godefroid Chapelle wrote: >> > Hello, >> > >> > GenericSetup has global registries for profiles and steps. >> > >> > They are a PITA when testing. >> > >> > For instance, plone.app.testing has to make a complicated dance to >> >

Re: [Zope-CMF] GenericSetup global registries

2011-03-08 Thread Wichert Akkerman
On 2011-3-8 17:08, Godefroid Chapelle wrote: > Hello, > > GenericSetup has global registries for profiles and steps. > > They are a PITA when testing. > > For instance, plone.app.testing has to make a complicated dance to > record and restore their state. How come? There is a very simple cleanup f

[Zope-CMF] GenericSetup global registries

2011-03-08 Thread Godefroid Chapelle
Hello, GenericSetup has global registries for profiles and steps. They are a PITA when testing. For instance, plone.app.testing has to make a complicated dance to record and restore their state. In branch gotcha-registries-use-utilities, I have removed those global storages. The profiles and