pombreda / formalchemy

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

FieldSet.render() fails when model has a boolean field == True #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running the attached file is raising the following error (tail):
/usr/lib/python2.5/compiler/transformer.pyc in parseexpr(self, text)
    131     def parseexpr(self, text):
    132         """Return a modified parse tree for the given expression
text."""
--> 133         return self.transform(parser.expr(text))
    134
    135     def parsefile(self, file):

TypeError: expr() argument 1 must be string, not bool

We should get a generated form with the default CheckBoxRenderer.  Instead
we get an exception when the underlying object's boolean field is True.

v1.2, ubuntu 8.04, python 2.5

original thread:
http://groups.google.com/group/formalchemy/browse_thread/thread/f33e4edb131df662

Original issue reported on code.google.com by bryanv...@gmail.com on 14 Apr 2009 at 10:41

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in 739-741

Original comment by jbel...@gmail.com on 27 Apr 2009 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by jbel...@gmail.com on 27 Apr 2009 at 2:37