[tw.forms] #28: CheckBoxList with ForEach validator and mako renderer displays wrong value

2 views
Skip to first unread message

Trac from toscawidgets.org

unread,
May 20, 2009, 10:55:00 AM5/20/09
to toscawidge...@groups.google.com
#28: CheckBoxList with ForEach validator and mako renderer displays wrong value
--------------------------------------------+-------------------------------
Reporter: ledmonster | Owner:
Type: defect | Status: new
Priority: critical | Version: 0.9
Keywords: ForEach, MultipleSelectionMixin |
--------------------------------------------+-------------------------------
CheckBoxList with ForEach validator and mako renderer displays wrong
value. It happens with following code.

{{{
class MakoCheckBoxList(CheckBoxList):
engine_name="mako"

foo = MakoCheckBoxList(options=("a", "b"),
validator=ForEach(validators.String))
print foo.display()

}}}

This is different from following output:

{{{
bar = MakoCheckBoxList(options=("a", "b"),
validator=validators.String)
print bar.display()
}}}

I have attached the patch for that.

--
Ticket URL: <http://toscawidgets.org/trac/tw.forms/ticket/28>
tw.forms </trac/tw.forms>
tw.forms - Form building widgets

Reply all
Reply to author
Forward
0 new messages