1. Torsten Irländer
  2. formbar
  3. Issues
Issue #2 wontfix

Error on Radion and Checkbox Fields

Torsten Irländer
repo owner created an issue

Configuring the selection fields using the following code:

<entity id="e5" name="select" label="Select field" type="string">
      <help>This is my helptext</help>
      <options display="radio">
        <option value="1">Option 1</option>
        <option value="2">Option 2</option>
        <option value="3">Option 3</option>
        <option value="4">Option 4</option>
      </options>
    </entity>

Causes error:

File "/home/torsten/Entwicklung/Python/formbar/formbar/formbar/form.py", line 382, in render return renderer.render() File "/home/torsten/Entwicklung/Python/formbar/formbar/formbar/renderer.py", line 113, in render return self.template.render(values) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/Mako-0.7.3-py2.7.egg/mako/template.py", line 412, in render return runtime.render(self, self.callable, args, data) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 766, in _render kwargs_for_callable(callable, data)) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 798, in render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/Mako-0.7.3-py2.7.egg/mako/runtime.py", line 824, in _exec_template callable(context, args, kwargs) File "/tmp/phormular_modules/field.mako.py", line 52, in render_body __M_writer(unicode(field._fa_field.render())) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/FormAlchemy-1.4.3-py2.7.egg/formalchemy/fields.py", line 1586, in render return self.renderer.render(opts) File "/home/torsten/Entwicklung/Python/ringo/python/local/lib/python2.7/site-packages/FormAlchemy-1.4.3-py2.7.egg/formalchemy/fields.py", line 790, in render *kwargs) TypeError: radio_button() got multiple values for keyword argument 'id'

Comments (1)

  1. Log in to comment