<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/genshi</id>
  <title type="text">Genshi Google Group</title>
  <subtitle type="text">
  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.
  </subtitle>
  <link href="/group/genshi/feed/atom_v1_0_msgs.xml" rel="self" title="Genshi feed"/>
  <updated>2008-10-05T00:40:37Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Matt Good</name>
  <email>matt+g...@matt-good.net</email>
  </author>
  <updated>2008-10-05T00:40:37Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/5976921eade34cc9?show_docid=5976921eade34cc9</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/5976921eade34cc9?show_docid=5976921eade34cc9"/>
  <title type="text">Re: Changing doctypes via the Buffet interface</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>jerryji</name>
  <email>jerryji1...@gmail.com</email>
  </author>
  <updated>2008-10-04T14:21:43Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/c8e0b688d4417258/d3370682e084a520?show_docid=d3370682e084a520</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/c8e0b688d4417258/d3370682e084a520?show_docid=d3370682e084a520"/>
  <title type="text">How to dynamically include templates?</title>
  <summary type="html" xml:space="preserve">
  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;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vortexmind</name>
  <email>vortexm...@gmail.com</email>
  </author>
  <updated>2008-09-29T13:42:25Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/520516d67383b58d?show_docid=520516d67383b58d</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/520516d67383b58d?show_docid=520516d67383b58d"/>
  <title type="text">Re: Genshi templates and Mootools JS selectors</title>
  <summary type="html" xml:space="preserve">
  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; )
  </summary>
  </entry>
  <entry>
  <author>
  <name>Victor Safronovich</name>
  <email>vsafronov...@progway.ru</email>
  </author>
  <updated>2008-09-29T03:52:15Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/cfa0487a6ce9129b?show_docid=cfa0487a6ce9129b</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/cfa0487a6ce9129b?show_docid=cfa0487a6ce9129b"/>
  <title type="text">Re: Genshi templates and Mootools JS selectors</title>
  <summary type="html" xml:space="preserve">
  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 $$.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Victor Safronovich</name>
  <email>vsafronov...@progway.ru</email>
  </author>
  <updated>2008-09-29T03:42:25Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/6c3c68e0c67fb584?show_docid=6c3c68e0c67fb584</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/6c3c68e0c67fb584?show_docid=6c3c68e0c67fb584"/>
  <title type="text">Re: Genshi templates and Mootools JS selectors</title>
  <summary type="html" xml:space="preserve">
  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;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Vortexmind</name>
  <email>vortexm...@gmail.com</email>
  </author>
  <updated>2008-09-28T22:03:03Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/381dd3a662d3e048?show_docid=381dd3a662d3e048</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/8eda1e07b515ae40/381dd3a662d3e048?show_docid=381dd3a662d3e048"/>
  <title type="text">Genshi templates and Mootools JS selectors</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>kindy</name>
  <email>kind...@gmail.com</email>
  </author>
  <updated>2008-09-28T08:53:49Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/b80cdfd90d76bcfe/e4b331400279db1f?show_docid=e4b331400279db1f</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/b80cdfd90d76bcfe/e4b331400279db1f?show_docid=e4b331400279db1f"/>
  <title type="text">Extend the genshi.builder.tag</title>
  <summary type="html" xml:space="preserve">
  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):
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christopher Lenz</name>
  <email>cml...@gmx.de</email>
  </author>
  <updated>2008-09-26T08:25:21Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/30b21721a24a0be2?show_docid=30b21721a24a0be2</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/30b21721a24a0be2?show_docid=30b21721a24a0be2"/>
  <title type="text">Re: HTMLFormFillter and type=&quot;password&quot;</title>
  <summary type="html" xml:space="preserve">
  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,
  </summary>
  </entry>
  <entry>
  <author>
  <name>Alec Thomas</name>
  <email>a...@swapoff.org</email>
  </author>
  <updated>2008-09-26T07:21:33Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/b26c22f7fbddeb54?show_docid=b26c22f7fbddeb54</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/b26c22f7fbddeb54?show_docid=b26c22f7fbddeb54"/>
  <title type="text">Re: Maximum recursion depth issue in rendering templates</title>
  <summary type="html" xml:space="preserve">
  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;:
  </summary>
  </entry>
  <entry>
  <author>
  <name>Richard Liao</name>
  <email>richard.lia...@gmail.com</email>
  </author>
  <updated>2008-09-25T17:27:29Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/abc457f7ba59e562?show_docid=abc457f7ba59e562</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/7e8a89a51784714a/abc457f7ba59e562?show_docid=abc457f7ba59e562"/>
  <title type="text">Maximum recursion depth issue in rendering templates</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Jon</name>
  <email>motorcyclewea...@gmail.com</email>
  </author>
  <updated>2008-09-25T18:56:43Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/3c8c1ad68a291055?show_docid=3c8c1ad68a291055</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/84a9d5883c6e9d57/3c8c1ad68a291055?show_docid=3c8c1ad68a291055"/>
  <title type="text">Re: HTMLFormFillter and type=&quot;password&quot;</title>
  <summary type="html" xml:space="preserve">
  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?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christoph Zwerschke</name>
  <email>c...@online.de</email>
  </author>
  <updated>2008-09-24T09:08:25Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/b3de395c1db47784?show_docid=b3de395c1db47784</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/b3de395c1db47784?show_docid=b3de395c1db47784"/>
  <title type="text">Re: Changing doctypes via the Buffet interface</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Jeroen Ruigrok van der Werven</name>
  <email>asmo...@in-nomine.org</email>
  </author>
  <updated>2008-09-24T08:30:26Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/69c2cd8be12a4b3f?show_docid=69c2cd8be12a4b3f</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/69c2cd8be12a4b3f?show_docid=69c2cd8be12a4b3f"/>
  <title type="text">Re: Changing doctypes via the Buffet interface</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christoph Zwerschke</name>
  <email>c...@online.de</email>
  </author>
  <updated>2008-09-23T10:32:49Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/a45ff01d648c6325?show_docid=a45ff01d648c6325</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/d0330e3984e36a18/a45ff01d648c6325?show_docid=a45ff01d648c6325"/>
  <title type="text">Changing doctypes via the Buffet interface</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Lin Qing</name>
  <email>kind...@gmail.com</email>
  </author>
  <updated>2008-09-23T01:28:23Z</updated>
  <id>http://groups.google.com/group/genshi/browse_thread/thread/8daede337cb7e9d1/37bc9bdac1deb1ff?show_docid=37bc9bdac1deb1ff</id>
  <link href="http://groups.google.com/group/genshi/browse_thread/thread/8daede337cb7e9d1/37bc9bdac1deb1ff?show_docid=37bc9bdac1deb1ff"/>
  <title type="text">Re: How do you include javascript in a sub template using Genshi?</title>
  <summary type="html" xml:space="preserve">
  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;
  </summary>
  </entry>
</feed>
