Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2331 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Fieldsets HTML output escaped after Sprox, ToscaWidgets and tw.forms upgrade

Reported by: diegows Owned by:
Priority: normal Milestone:
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

I've been using TableFieldSet? without any problem until Sprox, Toscawidgets and tw.forms upgrade (0.6.1, 0.9.6 and 0.9.6). After upgrade, TableFieldSet?().display() shows the children fields escaped.

I'm using TG2.

Steps to reproduce:

virtualenv --no-site-packages tg2envirtualenv --no-site-packages tg2env easy_install -i  http://www.turbogears.org/2.0/downloads/current/index tg.devtools easy_install zope.sqlalchemy easy_install Babel easy_install Catwalk paster quickstart testproject cd testproject paster shell

from tw.forms import TableFieldSet?, TextField? fs = [ TextField?('one'), TextField?('two') ] f = TableFieldSet?('testfieldset', children = fs) print f.display()

I've downgrade Sprox, tw.forms and ToscaWidgets? to previous version and works again.

Additional info:

The output is correct using python directly, without paster shell.

Change History

comment:1 Changed 3 years ago by diegows

from tw.forms import TableFieldSet, TextField
fs = [ TextField?('one'), TextField?('two') ] 
f = TableFieldSet?('testfieldset', children = fs)
print f.display() 

comment:2 Changed 3 years ago by diegows

virtualenv --no-site-packages tg2
cd tg2
. bin/activate
easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools
easy_install zope.sqlalchemy Babel Catwalk
paster quickstart testproject
cd testproject
paster shell 

comment:3 Changed 3 years ago by diegows

  • Status changed from new to closed
  • Resolution set to fixed

 http://toscawidgets.org/trac/tw.forms/ticket/32 is related to this bug.

I've installed tw.forms from trunk (508cfe7eb5b1) and works.

Note: See TracTickets for help on using tickets.