> Write:
danny.ad...@unfold.co.nz
> Browse:
www.unfold.co.nz
> Visit/Post: 41 Hihitahi Rise, Te Haumi, Paihia 0200, New Zealand
>
> "We are what we repeatedly do. Excellence, therefore, is not an act,
> but a habit." - Aristotle
>
> ==============================
> Caution
> The contents of this email and any attachments contain information
> which is CONFIDENTIAL to the recipient. If you are not the intended
> recipient, you must not read, use, distribute, copy or retain this
> email or its attachments. If you have received this email in error,
> please notify us immediately by return email or collect telephone call
> and delete this email. Thank you. We do not accept any
> responsibility for any changes made to this email or any attachment
> after transmission from us.
> ==============================
I followed the option 2 in the last mail (Alvaro's solution):
# pass options when displaying the form in the child_args dict
f.display(child_args=dict(age=dict(options=range(10))))
It's working for simpel fields but no for fieldsets. If I have a
fieldset called foo and a field called bar into it, how can I set
options for bar?
I tried with:
1) child_args = dict (bar = dict(options = bar_opts))
2) child_args = dict ('foo.bar' = dict(options = bar_opts))
3) child_args = dict (foo dict(bar = dict(options = bar_opts))
without success. No error, just doesn't work.
Regards,
Diego