On 7/19/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
>
> mahongquan schrieb:
> > i test turbogears 1.0.3 with old app.found this error using genshi
> > 0.4.3 template:
> >
> > File "G:\Python24\lib\site-packages\genshi-0.4.3-py2.4.egg\genshi
> > \output.py", line 66, in get_serializer
> > KeyError: 'html default'
>
> Just noticed that I am the culprit for this bug, sorry, sorry :-(
>
> If there is no output format, then "html default" is now assumed in
> view/base.py line 128, which works only with Kid. I think we need to
> revert that change and use just "html" as default which works with all
> engines ("default" is used by Kid anyway if nothing is specified).
>
> However, this should be easily solved by setting in your config:
> genshi.outputformat = "html".Ah, this is why I couldn't reproduce the "bug" that my change in http://trac.turbogears.org/ticket/1444 was giving Florent. Florent, can you look at including 1444 again, if you do a 1.0.3.1 release to fix this issue? (Otherwise it's impossible to tell Genshi that ${foo} should cause an error if the variable foo is not defined, without reregistering the Genshi template all over again in your own code.) Neil -- Neil Blakey-Milner http://nxsy.org/ [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

