Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fieldset and Multifield should not accept non basestring objects #56
While it may sound against Python's duck typing philosophy, this can lead to annoying bugs. If you pass it a layout object as the first item, it's converted to unicode and put in the template. Since it is done immediately after instantiation, there is no advantage over requiring it to be done outside.
I'm on my phone, so can't really type code easily but. Fieldset takes a
The div gets converted to unicode in the init and since its rear looks
I will explain better tonight when I get home, even provide a patch if you
On Jun 2, 2012 5:50 PM, "Miguel Araujo" <
Ah. Meant Fieldset instead of layout in the examlle
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I've been thinking on this and I'm afraid this might not be as doable as I thought in the beginning. The problem resides in the fact that not only a
So most likely this will be hard to do, as other people will not be able to pass other objects that behave like a duck, see what I mean?