On 02/07/2012 05:55 PM, Christoph Zwerschke wrote: > Am 07.02.2012 11:51, schrieb alex bodnaru: >> the tg/render.py render function is well designed to receive and pass the >> kwargs >> argument, to the renderer. >> but unfortunately, the kwargs parameter is being lost in the calling process >> in >> tg/controllers/decoratedcontroller.py. >> >> i specifically miss this option, since i wish to use a genshi template for >> xml >> output (without auto-generated DOCTYPE). a doctype kwarg would solve my >> problem, >> though i had to patch RenderGenshi to extract doctype from template_vars, >> which >> is being passed from the controller. > > We already made some improvements in that regard, e.g. here: > http://sourceforge.net/p/turbogears2/tg2/ci/1f4d3ae0866de3e9bd6c1f858156d7cde7c8d588/tree/tg/render.py?diff=fcb3cb5484d3bc02bf8a99eda2c8361c5be332d8 > > > -- Christoph > hello chris,
thanks for your answer. i unfortunately couldn't apply the patch. probably a newer tg is needed. should i try trunk? my solution so far is : tg.render.render(self.data(customer, items_to_compare),. 'genshi', 'example.templates.compare-core') thanks a lot, alex -- 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.

