[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/genshi.txt Added test for py:attrs and unicode values.
Malthe Borch
mborch at gmail.com
Mon Aug 18 10:47:15 EDT 2008
Log message for revision 89970:
Added test for py:attrs and unicode values.
Changed:
U z3c.pt/trunk/src/z3c/pt/genshi.txt
-=-
Modified: z3c.pt/trunk/src/z3c/pt/genshi.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/genshi.txt 2008-08-18 14:30:50 UTC (rev 89969)
+++ z3c.pt/trunk/src/z3c/pt/genshi.txt 2008-08-18 14:47:15 UTC (rev 89970)
@@ -157,9 +157,11 @@
... <ul xmlns="http://www.w3.org/1999/xhtml"
... xmlns:py="http://genshi.edgewall.org">
... <li class="expand" py:attrs="{'class': 'collapse'}">Bar</li>
- ... </ul>""")
+ ... <li class="expand" py:attrs="d">Bar</li>
+ ... </ul>""", d=dict({'class': u'\u1234'}))
<ul>
<li class="collapse">Bar</li>
+ <li class="á´">Bar</li>
</ul>
py:content, py:replace
@@ -234,7 +236,6 @@
:: Simple variable names do not need { .. }. From `py:with specs`_.
-
>>> print render_genshi("""\
... <div xmlns="http://www.w3.org/1999/xhtml"
... xmlns:py="http://genshi.edgewall.org">
@@ -244,8 +245,6 @@
<span>42 7 52</span>
</div>
-
-
:: Genshi variable interpolation and unicode values
>>> print render_genshi("""\
@@ -344,11 +343,9 @@
];
</script>
-
:: Both py:for and ${..} should be ignored in a comment, or both should be
handled.
-
>>> print render_genshi("""\
... <div xmlns="http://www.w3.org/1999/xhtml"
... xmlns:py="http://genshi.edgewall.org">
More information about the Checkins
mailing list