Quick fix for ToscaWidget 0.9.6 bug with ListForm

There is a little bug in ToscaWidget 0.9.6 when creating a form with a ListForm. The solution can be to use a TableForm or to fix the ListForm itself. The problem is inside the genshi template for the ListForm and can be fixed by changing tw.forms-0.9.6-py2.5.egg/tw/forms/templates/list_form.html in each line where there is a call to field.display(value_for(field), **args_for(field)) this must be surrounded with XML(…) so that the result from field.display won’t be escaped by genshi.

This should fix the problem when you see the XML code instead of the form itself inside your web page.

One Reply to “Quick fix for ToscaWidget 0.9.6 bug with ListForm”

Leave a Reply

Your email address will not be published. Required fields are marked *