Yes. This works!

The code is not by any chance available through git somewhere? I could send 
the relevant commit that way.

If not, I attached a patch.

On Friday, 2 August 2013 20:21:39 UTC+2, Christoph Zwerschke wrote:
>
> Am 02.08.2013 18:55, schrieb Michel Albert: 
> > After digging around, I came across the following line: 
> > 
> http://sourceforge.net/p/turbogears1/code/7426/tree/tags/1.5.1/turbogears/view/base.py#l525
>  
> > In that line, the variable "callback" is set, but it is not used 
> > anywhere. Could this be the cause of the problem? 
>
> Yes, this looks like a bug to me. 
>
> What happens when you add the line 
> engine_defaults['genshi.loader_callback'] = callback 
> after the following line? 
> callback = _get_genshi_loader_callback(i18n_filter) 
>
> -- Christoph 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.


diff -ur a/turbogears/view/base.py b/turbogears/view/base.py
--- a/turbogears/view/base.py	2011-07-14 17:15:35.000000000 +0200
+++ b/turbogears/view/base.py	2013-08-03 10:40:34.000000000 +0200
@@ -523,6 +523,7 @@
         i18n_filter = get('genshi.i18n_filter') or genshi_i18n_filter
         if i18n_filter:
             callback = _get_genshi_loader_callback(i18n_filter)
+            engine_defaults['genshi.loader_callback'] = callback
         i18n_filter = get('kid.i18n_filter') or kid_i18n_filter
         if i18n_filter:
             engine_defaults['kid.i18n_filter'] = i18n_filter

Reply via email to