You do not need CAT

SELECT(**[OPTION(s.name, _value=s.id) for s 
in db(db.file_subject).select()])

yet I do not think this is the problem. Probably you have duplicated 
options in database.

 

On Monday, 3 December 2012 01:23:06 UTC-6, software.ted wrote:
>
> Hi, I have this unusual behavior of my code below, the options are 
> being duplicated what could be the problem: 
>
> #print SELECT(CAT([OPTION(s.name, _value=s.id) for s in 
> db(db.file_subject).select()])) 
>
> <select> 
>     <option value="<option value="1">Information 
> Technology</option><option value="2">Correspondance</option>"> 
>     <option value="1">Information Technology</option> 
>     <option value="2">Correspondance</option></option> 
> </select> 
>
> ...Teddy L. 
>

-- 



Reply via email to