pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

TypeError in checkbox rendering #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
>>>fs.append(Field(name="cb") .checkbox(options=[('one', 1), ('two', 2)])) 
>>>fs.render() 
2.
3.

What is the expected output? What do you see instead?
I get this traceback (just the end part):
...
File '...FormAlchemy-1.3.5-py2.6.egg/formalchemy/fields.py', line 672 in 
_is_checked 
  return _stringify(choice_value) in value 
TypeError: argument of type 'NoneType' is not iterable 

What version of the product are you using? On what operating system?
1.3.5

Please provide any additional information below.

see discussion in group:
http://groups.google.com/group/formalchemy/browse_thread/thread/8062c23e4b809cdd

Original issue reported on code.google.com by neur...@gmail.com on 11 Feb 2011 at 9:33

GoogleCodeExporter commented 9 years ago
fixed. thanks.

Original comment by gael.pas...@gmail.com on 25 Mar 2011 at 12:38