you can't cycle db results within a tag as SELECT()

Il giorno mercoledì 26 settembre 2012 10:30:53 UTC+2, Hassan Alnatour ha 
scritto:
>
> Dear ALL,
>
> I am trying to return a div that has a select with option from table , but 
> am getting an error , and i still cant figure it out , any help please ?
>
> return DIV(
>         LABEL('%s: ' % table[column].label,_for=column),
>         DIV(SELECT(
>           #OPTION('None',_value=''),
>         for i in db().select(db.News.ALL):
>           OPTION('%s'%(i.id),_value='%s'%(i.EnglishTitle)),
>          
>         _name=column,_id=column),_class='input'),
>       _class='clearfix')
>
>
> Best Regards,
>

-- 



Reply via email to