New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block tag didnt make it into the babel extension #169

Closed
sqlalchemy-bot opened this Issue Jul 8, 2011 · 2 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Jul 8, 2011

Migrated issue, originally created by Michael Bayer (@zzzeek)

probable patch:

--- a/mako/ext/babelplugin.py	Wed Apr 06 19:01:23 2011 -0400
+++ b/mako/ext/babelplugin.py	Fri Jul 08 10:07:17 2011 -0400
@@ -68,6 +68,9 @@
         if isinstance(node, parsetree.DefTag):
             code = node.function_decl.code
             child_nodes = node.nodes
+        elif isinstance(node, parsetree.BlockTag):
+            code = node.body_decl.code
+            child_nodes = node.nodes
         elif isinstance(node, parsetree.CallTag):
             code = node.code.code
             child_nodes = node.nodes
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jul 8, 2011

Michael Bayer (@zzzeek) wrote:

4f554cb will reopen if the end user has further issues, since this is mostly a guess as to the fix/test.

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jul 8, 2011

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment