[tg-trunk] Re: Buffet and XHTML woes

2008-09-23 Thread Christoph Zwerschke
Christoph Zwerschke schrieb: Btw, it doesn't seem like the mapping parameter to view.render hasn't been used anywhere, so I suggest renaming it to options. I mean it *does* seem like it hasn't been used. Since the parameter is called options in the __init__ method, it makes sense to add

[tg-trunk] Re: Buffet and XHTML woes

2008-09-23 Thread Christoph Zwerschke
Christoph Zwerschke schrieb: Also, if you want a different doctype, Kid provides subvariants of format (e.g. html-quirks instead of html) or custom serializer instances that can have any doctype in the format parameter, so this also works just fine with Kid. I just notice that in Genshi you

[tg-trunk] Re: Buffet and XHTML woes

2008-09-23 Thread Christopher Arndt
Christoph Zwerschke schrieb: Christoph Zwerschke schrieb: Btw, it doesn't seem like the mapping parameter to view.render hasn't been used anywhere, so I suggest renaming it to options. I mean it *does* seem like it hasn't been used. Since the parameter is called options in the __init__

[tg-trunk] Re: Buffet and XHTML woes

2008-09-23 Thread Christoph Zwerschke
Christopher Arndt schrieb: Christoph Zwerschke schrieb: Since the parameter is called options in the __init__ method, it makes sense to add options to the render method as well, not mapping (except mapping is intended for some obscure different purpose, but there is no mention of it in the

[tg-trunk] Re: Buffet and XHTML woes

2008-09-23 Thread Christopher Arndt
Christoph Zwerschke schrieb: Right, it's passed all along from expose to view.render. And the expose() function even mentions it in the docstring: @keyparam mapping mapping with options that are sent to the template engine Yep, that's what I said in my original post. ;) I still

[tg-trunk] Re: Buffet and XHTML woes

2008-09-22 Thread Christopher Arndt
Christoph Zwerschke schrieb: Christopher Arndt schrieb: - Should the Genshi Buffet plugin determine the doctype from the template format? Should this be reported as a bug to the Genshi project? I think Genshi should never send a doctype that is incompatible with the format (doctype=HTML

[tg-trunk] Re: Buffet and XHTML woes

2008-09-22 Thread Mark Ramm
TG2 is still using buffet at the moment, but will be moving away from it between 1.9.7 and 2.0. On Mon, Sep 22, 2008 at 2:42 PM, Christopher Arndt [EMAIL PROTECTED] wrote: Christoph Zwerschke schrieb: Christopher Arndt schrieb: - Should the Genshi Buffet plugin determine the doctype from the

[tg-trunk] Re: Buffet and XHTML woes

2008-09-22 Thread Christoph Zwerschke
Christopher Arndt schrieb: Is anybody using the Buffet API except TurboGears 1.x nowadays anyway? Except for Genshi, all of the above mentioned Buffet plugins are under our control, so we could change them easily. We can also make our own Genshi Buffet plugin, if we need to. As far as I