Skip to content
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
Closed

block tag didnt make it into the babel extension #169

sqlalchemy-bot opened this issue Jul 8, 2011 · 2 comments
Labels
bug Something isn't working low priority

Comments

@sqlalchemy-bot
Copy link

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
Copy link
Author

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
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added low priority bug Something isn't working labels Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority
Projects
None yet
Development

No branches or pull requests

1 participant