[EMAIL PROTECTED] wrote: > I'd like to show my suggestion to the problem.
Nice. > <div py:if="'flash' in cherrypy.session"> > <p py:for="message in cherrypy.session['flash']" > py:content="message.to_genshi()" py:attrs="message.attrs">Flash > Message</p> > </div> Instead of message.to_genshi() you can write XML(message.message), then it will work with both Kid and Genshi. With Genshi you can also used HTML(...) instead of XML(...). The to_genshi() method is not necessary. One problem is that cherrypy.session is not available in the template by default, you must add it via turbogears.view.variable_providers. I think it would be a good idea to make this generally available if sessions are enabled (http://trac.turbogears.org/ticket/1409). -- Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

