We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using version 0.3, for this statement:
${field(**dict(kwargs, **{'data-type': field.type}))}
I get the following traceback:
Traceback (most recent call last): File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\wsgi.py", line 639, in __call__ return app(environ, start_response) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "C:\Program Files (x86)\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "D:\Dev\python\site-packages\rfw\frontend\blueprints\user\__init__.py", line 43, in login return render('/form.mako', form=form, submit=u'Abrir sesión') File "C:\Program Files (x86)\Python27\lib\site-packages\flask_mako.py", line 232, in render_template context, ctx.app) File "C:\Program Files (x86)\Python27\lib\site-packages\flask_mako.py", line 217, in _render raise translated TemplateError
translated.text contains:
\n\nTraceback (most recent call last):\n File "C:\\Program Files (x86)\\Python27\\lib\\site-packages\\flask_mako.py", line 210, in _render\n rv = template.render(**context)\n File "C:\\Program Files (x86)\\Python27\\lib\\site-packages\\mako\\template.py", line 443, in render\n return runtime._render(self, self.callable_, args, data)\n File "C:\\Program Files (x86)\\Python27\\lib\\site-packages\\mako\\runtime.py", line 807, in _render\n **_kwargs_for_callable(callable_, data))\n File "C:\\Program Files (x86)\\Python27\\lib\\site-packages\\mako\\runtime.py", line 839, in _render_context\n _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n File "C:\\Program Files (x86)\\Python27\\lib\\site-packages\\mako\\runtime.py", line 865, in _exec_template\n callable_(context, *args, **kwargs)\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/layout.mako", line 64, in render_body\n </ul>\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/form.mako", line 4, in render_content\n ${self.h.render_form(form, context.get('submit', 'Guardar'))}\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/helpers.mako", line 248, in render_render_form\n ${render_field(field, inline=inline, **kw)}\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/helpers.mako", line 42, in render_field\n </tr>\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/helpers.mako", line 158, in render_render_field\n ${render_input(field, enclosed=enclosed if not inline else False, inline=inline, **kwargs)}\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/helpers.mako", line 138, in render_input\n <%def name="render_input_bottom(field)">\n File "D:\\Dev\\python\\site-packages\\rfw\\frontend\\templates/helpers.mako", line 146, in render_render_input\n ${field(**dict(kwargs, **{'data-type': field.type}))}\nTypeError: <lambda>() takes exactly 0 arguments (2 given)\n
If I change the statement to something like this it works:
${field(**kwargs)}
field is a WTForms form field. I've reverted back to 0.2 and all is working fine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using version 0.3, for this statement:
I get the following traceback:
translated.text contains:
If I change the statement to something like this it works:
field is a WTForms form field. I've reverted back to 0.2 and all is working fine.
The text was updated successfully, but these errors were encountered: