Happy New Year!!

I am trying to set some functions...am having trouble haveing a selected
option, am doing as follows:

def get_drop_down_option9(options_dict, selected):
  return [OPTION(value_, _value=key_ , *['_selected' if selected == key_
else '']) for key_, value_ in options_dict.iteritems()]

I am getting the output

print SELECT(get_drop_down_option9(options, 'dad'))

<select><option value="dad">Jame_selected</option><option
value="sister">Ann</option><option value="bro1">Sam</option><option
value="mom">Sara</option><option value="bro2">Kelvin</option></select>


What am i missing or how do i get it right

-- 
.......................................................................................
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA

Cell: +260 97 7760473
website: http://www.opensource.org.zm

~/
Human Knowledge belongs to the world! - AntiTrust

Man is a tool-using animal. Without tools he is nothing, with tools he is
all - Thomas Carlyle 1795-1881

/~

-- 



Reply via email to