I need to create a comma separated list of tags from the rows returned from 
a tags table.

This is how I am doing it now, but it seems wasteful. There must be a 
better way.

tag_db = db(db.tag.id>0).select(db.tag.name)
tag_list = []
    for t in tag_db:
        tag_list.append(t.name)
tags = ", ".join(tag_list)

Thanks
Rod

-- 



Reply via email to