﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
155,"py:match handling does not invoke _exec, ignores EXEC events in (sub)template",Andrew Sutherland <sombrero@…>,cmlenz,"In MarkupTemplate._match in genshi/template/markup.py, the processing of the template sub-stream is passed through _flatten and _eval, but not _exec.  Although it would make sense to avoid doing this so as to avoid confusing corruption of the enclosing context, _match has already pushed a new frame to hold the select() function so there is no danger.

As things stand, an arguably dubious example like the following would do what seems to be the wrong thing.  We would expect the output to include ""wakka wakka wakka"", but instead we get ""robo!"".

{{{
#!genshi
<?python title=""robo!"" ?>
<html xmlns:py=""http://genshi.edgewall.org/"">
  <py:match path=""p"">

    <?python title=""wakka wakka wakka"" ?>

    ${title}<br />

  </py:match>

  <body><p>moot text</p></body>
</html>
}}}",defect,closed,major,0.5,Template processing,devel,fixed,,
