[pylons-discuss] Re: CheckboxChoiceWidget - all checked by default

2015-06-16 Thread Petr Blahos
And the answer is:

class Schema(colander.Schema):
incl = colander.SchemaNode(
colander.Set(),
title=_("Pallets to include"),
widget=deform.widget.CheckboxChoiceWidget(
values=((16, "First pallet"), (17, "Second pallet")),
),
default=["16", "17"],
)



On Wed, Jun 17, 2015 at 8:10 AM, Petr Blahos  wrote:

> Hello,
>>
>> is it possible to make all the checkboxes in a CheckboxChoiceWidget
>> checked by
>> default?
>>
>
> Sorry, I meant to say in colander + deform2.
>
> Thanks.
> Petr
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.


[pylons-discuss] Re: CheckboxChoiceWidget - all checked by default

2015-06-16 Thread Petr Blahos
>
> Hello,
>
> is it possible to make all the checkboxes in a CheckboxChoiceWidget
> checked by
> default?
>

Sorry, I meant to say in colander + deform2.

Thanks.
Petr

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.