> <select
> name="gender"
> <option
> py:for="label, val in (
> ('Unknown', 'u'),
> ('Female', 'f'),
> ('Male', 'm'))"
> py:content="label"
> value="${val}"
> selected="${std.selector(user.gender == val)}"
> />
> </select>
Thanks, Bob. How would I modify the template if
I wanted to pass a selection list into the it as
py:content?
return dict(gender_list=(('Unknown', 'u'),
('Female', 'f'),
('Male', 'm')))
It doesn't appear that I can just substitute
py:content="gender_list" in the for loop:
<option
py:for="label, val in py:content="gender_list" ...
-Jeff