<?python not working

Bug #588938 reported by ChrisW
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chamelon Core
Confirmed
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
Malthe Borch (mborch) wrote :

This hasn't been implemented yet, but I agree that it should.

Changed in chameleon.core:
status: New → Confirmed
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.