Hello, I have a form that works well with a submit button. However when
using pagination the URL is passed with GET. The form includes a
CheckBoxList. When only one box is selected it works becasue that
variable is passes as a scalar. As soon as more than one value is
selected and exception is raised.

The following is OK:
http://localhost:8080/action?filter.macro=qwer&filter.designer=eee&filter.status=1

This throws an error:
http://localhost:8080/action?filter.macro=qwer&filter.designer=eee&filter.status=[1,2]

When I handle the error I see this:
 'tg_errors': {'filter': {'status': 'Please select at least a value'}}}

Also, the validators don't seem perform any conversion because I see
status set as follows:
 kw={'filter': {'status': u'[1,2]', 'macro': u'qwer', 'designer':
u'eee'},

That is, it's a string and not a list.

Any ideas?

Thanks for reading this.

Nicky


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to