Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-05 Thread Wichert Akkerman
On 3/5/11 09:47 , Vincent Fretin wrote: > On Wed, Mar 2, 2011 at 3:13 PM, Godefroid Chapelle > wrote: > > Le 02/03/11 15:04, Wichert Akkerman a écrit : > > None. The initial implementation only had local registries, but their > > behaviour was inconsistent

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-05 Thread Vincent Fretin
On Wed, Mar 2, 2011 at 3:13 PM, Godefroid Chapelle wrote: > Le 02/03/11 15:04, Wichert Akkerman a écrit : > > None. The initial implementation only had local registries, but their > > behaviour was inconsistent and confusing so we added the global > > registration as a better alternative. > > > >

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Godefroid Chapelle
Le 02/03/11 15:04, Wichert Akkerman a écrit : > None. The initial implementation only had local registries, but their > behaviour was inconsistent and confusing so we added the global > registration as a better alternative. > > Wichert. Can we just get rid of those local registries ? I guess some

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Godefroid Chapelle
Le 02/03/11 14:59, Godefroid Chapelle a écrit : > IOW, it seems it should be : > > def getExportStep(self, step, default=None): > """Simple wrapper to query both the global and local step > registry.""" > res=self._export_step_registry.getStep(step, default) > if

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Wichert Akkerman
On 3/2/11 15:03 , Godefroid Chapelle wrote: > Le 02/03/11 15:01, Wichert Akkerman a écrit : >> On 3/2/11 14:59 , Godefroid Chapelle wrote: >>> Hi, >>> >>> I have been looking at GenericSetup tool.py. >>> >>> The order in which global and local registries are queried is different >>> in getImportSte

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Godefroid Chapelle
Le 02/03/11 15:01, Wichert Akkerman a écrit : > On 3/2/11 14:59 , Godefroid Chapelle wrote: >> Hi, >> >> I have been looking at GenericSetup tool.py. >> >> The order in which global and local registries are queried is different >> in getImportStep and getExportStep on one side and in >> getImportSt

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Wichert Akkerman
On 3/2/11 14:59 , Godefroid Chapelle wrote: > Hi, > > I have been looking at GenericSetup tool.py. > > The order in which global and local registries are queried is different > in getImportStep and getExportStep on one side and in > getImportStepMetadata and getExportStepMetadata on the other side.

[Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Godefroid Chapelle
Hi, I have been looking at GenericSetup tool.py. The order in which global and local registries are queried is different in getImportStep and getExportStep on one side and in getImportStepMetadata and getExportStepMetadata on the other side. See below: def getExportStep(self, step, defaul