Quick fix for ToscaWidget 0.9.6 bug with ListForm
Thursday, June 11th, 2009 | Web
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.
Search
Archives
Tags
3D
acr
apache
automake
autotools
benchmarks
callgrind
canvas
centos
cmake
cms
efika
elixir
feng
functional programming
gentoo
gluster
google
javascript
labs
Linux
lscube
modsecurity
mongodb
netbook
oprofile
osx
pyhp
python
ragel
rails
repoze.who
ruby
security
sprox
sqlalchemy
ssd
Streaming
toscawidgets
turbogears
twitter
valgrind
Web
webserver
windows