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 #1044 (closed defect: duplicate)

Opened 13 years ago

Last modified 12 years ago

paginate fails with compound widget and validation

Reported by: randall@… Owned by: anonymous
Priority: normal Milestone: 1.0b2
Component: TurboGears Version: 0.9a5
Severity: normal Keywords:
Cc:

Description

When a form has a compound widget, uses paginate and validation, paginate fails when trying to navigate to pages other than page 1. The error is a FormEncode error that looks like this:

File "/usr/lib/python2.4/site-packages/FormEncode-0.5.1-py2.4.egg/formencode/schema.py", line 116, in _to_python

for name, value in value_dict.items():

AttributeError?: 'unicode' object has no attribute 'items'

Removing validation lets paginate work, but that's not a good solution. I'm attaching a simple quickstarted application that demonstrates the problem.

Attachments

paginatetest.tar.gz Download (19.2 KB) - added by randall@… 13 years ago.
quickstarted app that demonstrates paginate failure
paginate.py.patch Download (1.1 KB) - added by randall@… 13 years ago.
fixes issues with compound widget submissions

Change History

Changed 13 years ago by randall@…

quickstarted app that demonstrates paginate failure

Changed 13 years ago by randall@…

fixes issues with compound widget submissions

comment:1 Changed 13 years ago by jorge.vargas

  • Milestone set to 1.0b2

please test this under current

comment:2 Changed 13 years ago by randall@…

I included this patch along with another patch that also includes SA support and better sorting.

http://trac.turbogears.org/turbogears/ticket/1115

comment:3 Changed 13 years ago by jorge.vargas

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

in that case I'll close this ticket in favor or that one.

by the way wiki syntax lets you type "#1115" and it will make a link to the ticket

Note: See TracTickets for help on using tickets.