<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>Genshi Google Group</title>
  <link>http://groups.google.com/group/genshi</link>
  <description>Discussion about Genshi, a Python toolkit for stream-based generation of output for the web. This group was previously at http://groups.google.com/group/markup-discuss. Older messages can be found in the archive of that group.</description>
  <language>en</language>
  <item>
  <title>Re: Changing doctypes via the Buffet interface</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/5976921eade34cc9?show_docid=5976921eade34cc9</link>
  <description>
  Provide a patch to MarkupTemplateEnginePlugin._ge t_render_options to &lt;br&gt; map extended format names like those to the expected doctype and I&#39;ll &lt;br&gt; make sure it gets in. &lt;br&gt; &lt;p&gt;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://genshi.edgewall.org/browser/trunk/genshi/template/plugin.py#L142&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;-- Matt
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/5976921eade34cc9?show_docid=5976921eade34cc9</guid>
  <author>
  matt+g...@matt-good.net
  (Matt Good)
  </author>
  <pubDate>Sun, 05 Oct 2008 00:40:37 UT
</pubDate>
  </item>
  <item>
  <title>How to dynamically include templates?</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/c8e0b688d4417258/d3370682e084a520?show_docid=d3370682e084a520</link>
  <description>
  Hi, &lt;br&gt; &lt;p&gt;How can I dynamically include non-file templates? &lt;br&gt; &lt;p&gt;This is my master template -- &lt;br&gt; &lt;p&gt;&amp;quot;&amp;quot;&amp;quot; &lt;br&gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt; &lt;br&gt; &amp;lt;html xmlns=&amp;quot;...&amp;quot; xmlns:py=&amp;quot;...&amp;quot; xmlns:xi=&amp;quot;...&amp;quot;&amp;gt; &lt;br&gt; &amp;lt;head /&amp;gt; &lt;br&gt; &amp;lt;body&amp;gt; &lt;br&gt; &amp;lt;py:for each=&amp;quot;widget_template in widget_templates&amp;quot;&amp;gt; &lt;br&gt; &amp;lt;xi:include href=&amp;quot;[How to include widget_template here?]&amp;quot; /&amp;gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/c8e0b688d4417258/d3370682e084a520?show_docid=d3370682e084a520</guid>
  <author>
  jerryji1...@gmail.com
  (jerryji)
  </author>
  <pubDate>Sat, 04 Oct 2008 14:21:43 UT
</pubDate>
  </item>
  <item>
  <title>Re: Genshi templates and Mootools JS selectors</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/520516d67383b58d?show_docid=520516d67383b58d</link>
  <description>
  This works :) &lt;br&gt; &lt;p&gt;P.S. for XHTML compliance, I use &lt;br&gt; &lt;p&gt; /* &amp;lt;![CDATA[ */ &lt;br&gt; &lt;p&gt; js code &lt;br&gt; &lt;p&gt; /* ]]&amp;gt; */ &lt;br&gt; &lt;p&gt;as this works also for some older browsers ( details : &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://javascript.about.com/library/blxhtml.htm&quot;&gt;[link]&lt;/a&gt; )
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/520516d67383b58d?show_docid=520516d67383b58d</guid>
  <author>
  vortexm...@gmail.com
  (Vortexmind)
  </author>
  <pubDate>Mon, 29 Sep 2008 13:42:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: Genshi templates and Mootools JS selectors</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/cfa0487a6ce9129b?show_docid=cfa0487a6ce9129b</link>
  <description>
  Hello, Victor. &lt;br&gt; You wrote 29 ???????? 2008 ?., 9:42:25: &lt;br&gt; ]]&amp;gt;&amp;gt; &lt;br&gt; O, I`m sorry, this doesn`t help in your case, try use $$$$ instead &lt;br&gt; of $$.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/cfa0487a6ce9129b?show_docid=cfa0487a6ce9129b</guid>
  <author>
  vsafronov...@progway.ru
  (Victor Safronovich)
  </author>
  <pubDate>Mon, 29 Sep 2008 03:52:15 UT
</pubDate>
  </item>
  <item>
  <title>Re: Genshi templates and Mootools JS selectors</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/6c3c68e0c67fb584?show_docid=6c3c68e0c67fb584</link>
  <description>
  Hello, Vortexmind. &lt;br&gt; You wrote 29 ???????? 2008 ?., 4:03:03: &lt;br&gt; You should include your javascript in the CDATA xml node, like this &lt;br&gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt; &lt;br&gt; &amp;lt;![CDATA[ &lt;br&gt; var $$ = null; &lt;br&gt; ]]&amp;gt; &lt;br&gt; &amp;lt;/script&amp;gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/6c3c68e0c67fb584?show_docid=6c3c68e0c67fb584</guid>
  <author>
  vsafronov...@progway.ru
  (Victor Safronovich)
  </author>
  <pubDate>Mon, 29 Sep 2008 03:42:25 UT
</pubDate>
  </item>
  <item>
  <title>Genshi templates and Mootools JS selectors</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/381dd3a662d3e048?show_docid=381dd3a662d3e048</link>
  <description>
  Hi all &lt;br&gt; I&#39;m developing a web app using Turbogears 2 with Genshi templates and &lt;br&gt; Mootools Javascript framework. I am a novice with Genshi and I&#39;m &lt;br&gt; having a problem. &lt;br&gt; &lt;p&gt;As you may know, MooTools support a selector $$ to find an array of &lt;br&gt; elements with a specified selector. For example, $$(&#39;a&#39;) returns all
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/381dd3a662d3e048?show_docid=381dd3a662d3e048</guid>
  <author>
  vortexm...@gmail.com
  (Vortexmind)
  </author>
  <pubDate>Sun, 28 Sep 2008 22:03:03 UT
</pubDate>
  </item>
  <item>
  <title>Extend the genshi.builder.tag</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/b80cdfd90d76bcfe/e4b331400279db1f?show_docid=e4b331400279db1f</link>
  <description>
  the genshi.builder.tag allow us create element easy and quickly, &lt;br&gt; but some times we need to create element in html or xhtml, so i do &lt;br&gt; this. &lt;br&gt; share to you . &lt;br&gt; &lt;p&gt;{{{ &lt;br&gt; from builder import Element, ElementFactory, Stream &lt;br&gt; &lt;p&gt;__all__ = [&#39;htmltag&#39;, &#39;xhtmltag&#39;, &#39;tag&#39;] &lt;br&gt; &lt;p&gt;class CustomElement(Element): &lt;br&gt; &lt;p&gt; def __init__(self, tag_, serializer, **attrib):
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/b80cdfd90d76bcfe/e4b331400279db1f?show_docid=e4b331400279db1f</guid>
  <author>
  kind...@gmail.com
  (kindy)
  </author>
  <pubDate>Sun, 28 Sep 2008 08:53:49 UT
</pubDate>
  </item>
  <item>
  <title>Re: HTMLFormFillter and type=&quot;password&quot;</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/30b21721a24a0be2?show_docid=30b21721a24a0be2</link>
  <description>
  Hi Jon, &lt;br&gt; I&#39;d gladly accept a patch that toggled password filling on (off should &lt;br&gt; remain the default), via a keyword argument passed to __init__. &lt;br&gt; Thanks,
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/30b21721a24a0be2?show_docid=30b21721a24a0be2</guid>
  <author>
  cml...@gmx.de
  (Christopher Lenz)
  </author>
  <pubDate>Fri, 26 Sep 2008 08:25:21 UT
</pubDate>
  </item>
  <item>
  <title>Re: Maximum recursion depth issue in rendering templates</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/b26c22f7fbddeb54?show_docid=b26c22f7fbddeb54</link>
  <description>
  The only solution to this that I can think of is to buffer the full &lt;br&gt; stream in between each filter, which of course has its own downsides. &lt;br&gt; It might be possible to automate this by tracking the number of &lt;br&gt; filters in a Transformer, and buffering when it hits some limit. &lt;br&gt; 2008/9/26 Richard Liao &amp;lt;richard.lia...@gmail.com&amp;gt;:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/b26c22f7fbddeb54?show_docid=b26c22f7fbddeb54</guid>
  <author>
  a...@swapoff.org
  (Alec Thomas)
  </author>
  <pubDate>Fri, 26 Sep 2008 07:21:33 UT
</pubDate>
  </item>
  <item>
  <title>Maximum recursion depth issue in rendering templates</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/abc457f7ba59e562?show_docid=abc457f7ba59e562</link>
  <description>
  I have met a trac crash when I was trying to create new ticket or &lt;br&gt; access admin pages. &lt;br&gt; &lt;p&gt;The trac crashes hardly with error: &amp;quot;segmentation fault&amp;quot; in my FreeBSD &lt;br&gt; box. &lt;br&gt; &lt;p&gt;After some digging, I found the problem lays in genshi&#39;s transform &lt;br&gt; module. &lt;br&gt; &lt;p&gt;The following is a test script to reproduce that hard crashe by
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/abc457f7ba59e562?show_docid=abc457f7ba59e562</guid>
  <author>
  richard.lia...@gmail.com
  (Richard Liao)
  </author>
  <pubDate>Thu, 25 Sep 2008 17:27:29 UT
</pubDate>
  </item>
  <item>
  <title>Re: HTMLFormFillter and type=&quot;password&quot;</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/3c8c1ad68a291055?show_docid=3c8c1ad68a291055</link>
  <description>
  That&#39;s true but then the source doesn&#39;t move with the package. &lt;br&gt; &lt;p&gt;I could easily supply a patch that would not change the default &lt;br&gt; behavior but still let it be easily supported (either via __init__ or &lt;br&gt; a class variable, etc...). If I supplied a patch, what&#39;s the &lt;br&gt; likelihood of it getting in, provided it&#39;s not too invasive?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/3c8c1ad68a291055?show_docid=3c8c1ad68a291055</guid>
  <author>
  motorcyclewea...@gmail.com
  (Jon)
  </author>
  <pubDate>Thu, 25 Sep 2008 18:56:43 UT
</pubDate>
  </item>
  <item>
  <title>Re: Changing doctypes via the Buffet interface</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/b3de395c1db47784?show_docid=b3de395c1db47784</link>
  <description>
  Jeroen Ruigrok van der Werven schrieb: &lt;br&gt; That&#39;s right, this is no problem if you&#39;re using Genshi directly. But &lt;br&gt; I&#39;m talking about using Genshi via the Genshi Buffet interface (as used &lt;br&gt; by e.g. TurboGears 1.x). There is currently no way of passing in the &lt;br&gt; doctype parameter via Buffet at render time. &lt;br&gt; -- Christoph
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/b3de395c1db47784?show_docid=b3de395c1db47784</guid>
  <author>
  c...@online.de
  (Christoph Zwerschke)
  </author>
  <pubDate>Wed, 24 Sep 2008 09:08:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: Changing doctypes via the Buffet interface</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/69c2cd8be12a4b3f?show_docid=69c2cd8be12a4b3f</link>
  <description>
  Perhaps I am missing or misunderstanding something, but I am using this: &lt;br&gt; self.stream.render(&#39;xhtml&#39;, doctype=DocType.XHTML_STRICT) &lt;br&gt; with Geshi which allows me to precisely specify which doctype of XHTML I &lt;br&gt; want.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/69c2cd8be12a4b3f?show_docid=69c2cd8be12a4b3f</guid>
  <author>
  asmo...@in-nomine.org
  (Jeroen Ruigrok van der Werven)
  </author>
  <pubDate>Wed, 24 Sep 2008 08:30:26 UT
</pubDate>
  </item>
  <item>
  <title>Changing doctypes via the Buffet interface</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/a45ff01d648c6325?show_docid=a45ff01d648c6325</link>
  <description>
  In TurboGears, we&#39;re on the verge of releasing version 1.1 where Kid has &lt;br&gt; been replaced with Genshi as the default templating engine. &lt;br&gt; TurboGears 1.x is using the Buffet API, and we&#39;re facing one serious &lt;br&gt; problem here when making the switch to Genshi, namely that it&#39;s &lt;br&gt; impossible to produce different doctype on different pages, e.g. when
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/a45ff01d648c6325?show_docid=a45ff01d648c6325</guid>
  <author>
  c...@online.de
  (Christoph Zwerschke)
  </author>
  <pubDate>Tue, 23 Sep 2008 10:32:49 UT
</pubDate>
  </item>
  <item>
  <title>Re: How do you include javascript in a sub template using Genshi?</title>
  <link>http://groups.google.com/group/genshi/browse_thread/thread/8daede337cb7e9d1/37bc9bdac1deb1ff?show_docid=37bc9bdac1deb1ff</link>
  <description>
  why not just say: &lt;br&gt; {{{ &lt;br&gt; &amp;lt;script src=&amp;quot;/static/javascript/jquery -1.2.6.min.js&amp;quot; &lt;br&gt; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/scrip t&amp;gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/genshi/browse_thread/thread/8daede337cb7e9d1/37bc9bdac1deb1ff?show_docid=37bc9bdac1deb1ff</guid>
  <author>
  kind...@gmail.com
  (Lin Qing)
  </author>
  <pubDate>Tue, 23 Sep 2008 01:28:23 UT
</pubDate>
  </item>
  </channel>
</rss>
