You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how do you pass a dict as a parameter to <%namespace:def #400
Originally posted by jjgalvez May 5, 2024
How do I pass a dict to a def when it's called from <%namespace:def>.
I would expect that calling <%namespace:def param="${ {'id':123} }"></namespace:def> to work, but when I do I get an error saying I am missing a closing }
for reference <%call expr="namespace.def(param={'id':123})"></%call> works as expected.
Activity
sqla-tester commentedon May 13, 2024
Jose has proposed a fix for this issue in the main branch:
Update parsetree.py removed "?" from for x in re.compile(r"(${.+})" … https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5296
Update parsetree.py removed "?" from for x in re.compile(r"(\${.+})" …
zzzeek commentedon May 14, 2024
bug remains open as we have to revert this, see #401
sqla-tester commentedon Dec 3, 2024
Hai Zhu has proposed a fix for this issue in the main branch:
Support the direct passing of dictionary literals. https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/5558
Support the direct passing of dictionary literals.