On 8/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am working on a TurboGears application which generates a large table > using a Kid template. The performance of this is very slow, so, > following the advice of http://trac.turbogears.org/ticket/28, I am > trying Genshi instead. The steps I have performed are: > > * Added the line tg.defaultview = "genshi" to app.cfg > * Renamed the *.kid files to *.html files > * Modified the tags at the start of the template files. They now > read: > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:py="http://genshi.edgewall.org/" > xmlns:xi="http://www.w3.org/2001/XInclude"> > <xi:include href="master.html" /> > > except for master.html, which reads: > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:py="http://genshi.edgewall.org/" > py:strip=""> > > * Changed the py:match, py:attrs and py:replace attributes in > master.html. For example: > <head py:match="head" py:attrs="select('@*')"> > > This is all in line with the sample Genshi project. However, I see no > speed up from this. Running the code through Python's profile module, > I still see calls to the Kid module; in particular, to kid-0.9.6- > py2.4.egg\kid\__init__.py:105(load_template). Very little time is > spent in the Genshi module. > > How can I force TurboGears to use Genshi? the current widgets package is still kid based, and the genshi templates just wrap it. if you want genshi widgets go to ToscaWidgets. > > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

