This is wrong. Should be:

 def records():
    'show all recors in plugin_seq db to user'
    records = db(db.plugin_seq.id>0).select()
    items = []
    for record in records:
        items.append(TR(TD(record.filename),(TD('del'))))
    return TABLE(*items)

>>> print  TD('hello')
<td>hello</td>
>>> print  TR(TD('hello'),TD('world'))
<tr><td>hello</td><td>world</td></tr>
>>> items = [TR(TD('hello'),TD('world'))]
>>> print TABLE(*items)
<table><tr><td>hello</td><td>world</td></tr></table>

Hope it makes sense.

On Saturday, 5 May 2012 07:32:09 UTC-5, praveen krishna wrote:
>
> Hii,
>      What does TR and TD do in the function 
>  def records():
>     'show all recors in plugin_seq db to user'
>     records = db(db.plugin_seq.id>0).select()
>     items = []
>     for record in records:
>         items.append(TR(TD(record.filename)(TD('del'))))
>     return TABLE(items)
>  and what does actually TR and TD mean.
>

Reply via email to