[Zope-Coders] Re: CVS: Zope3/src/zope/tal - talinterpreter.py:1.22.4.1

Godefroid Chapelle gotcha at swing.be
Wed Aug 6 11:44:29 EDT 2003


Hi Fred,

If you decide the below fix is ok, could you please include it in Zope 
2.7 ? or tell me to do it ;-)

Stephan Richter wrote:
> Update of /cvs-repository/Zope3/src/zope/tal
> In directory cvs.zope.org:/tmp/cvs-serv28521
> 
> Modified Files:
>       Tag: srichter-i18n-macro-interaction-branch
> 	talinterpreter.py 
> Log Message:
> YIPEEE! The bug seems fixed! All tests pass!
> 
> 
> === Zope3/src/zope/tal/talinterpreter.py 1.22 => 1.22.4.1 ===
> --- Zope3/src/zope/tal/talinterpreter.py:1.22	Tue Jul 15 02:06:56 2003
> +++ Zope3/src/zope/tal/talinterpreter.py	Tue Aug  5 18:41:48 2003
> @@ -156,7 +156,11 @@
>  
>      def popMacro(self):
>          stuff = self.macroStack.pop()
> -        self.i18nContext = stuff[3]
> +        # XXX: Fred check this, please! But it makes totally sense. In
> +        # pushMacro() you never make any adjustment to self.i18nContext, but
> +        # when you pop the macro you do set self.i18nContext. That cannot be
> +        # correct! And commenting the line below out, makes all the tests pass!
> +        #self.i18nContext = stuff[3]
>          return stuff
>  
>      def macroContext(self, what):


-- 
Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901

TVA 467 093 008
RC Niv 49849





More information about the Zope-Coders mailing list