> > No, Im afraid not. Not in this case. > The point was that I wanted to use the same method for "view" and > "html-mail" so I need the method to return the rendered KID template. > If I try to render the template directly in my thread using KID, KID > insists on using us-ascii to interpret the template. Perhaps I should > switch to genshi.
I don't see where that might help, given that the expose decorator pukes at a place that doesn't seem to deal with the template at all. Why don't instantiate the template yourself? It's very easy, and then you can set the encoding yourself (however that works, I don't have the code before my inner eye) Alternatively, you can try and set up things in a way that make the expose decorator happy - by stuffing a thread-local fake-request object in cherrypy. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

