genshi: <?python not working

Bug #588913 reported by ChrisW
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chameleon (inactive)
Invalid
Undecided
Unassigned

Bug Description

With the reference implementation of genshi you can do the following:

>>> from genshi.template import MarkupTemplate
>>> tmp = MarkupTemplate("""\
... <?python
... title = "A Genshi Template"
... ?>
... <html xmlns:py="http://genshi.edgewall.org/">
... <head>
... <title py:content="title">This is replaced.</title>
... </head>
... </html>
... """)
>>> stream = tmp.generate()
>>> print stream.render('xhtml')
<html>
  <head>
    <title>A Genshi Template</title>
  </head>
</html>

The same doesn't work in chameleon.genshi.

The attached patch adds a failing test that demonstrates this.

Tags: genshi
Revision history for this message
ChrisW (chris-simplistix) wrote :
Revision history for this message
ChrisW (chris-simplistix) wrote :

Wrong project, sorry.

Changed in chameleon:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.