OK, I found that labels are in db.fieldname.label, now I just have to create a dict.
2010/12/6 Bruno Rocha <rochacbr...@gmail.com> > HI, > > I have a 'category' table: > > db.define_table('category', > Field('name',label=T('Name')), > signature, > format='%(name)s' > ) > > which I defined a label for the field 'name' > > I need to create something like: > > list = plugin_datatable(db(db.category.id>0).select(db.category.id, > db.category.name), > _class='datatable', > headers = {'category.name':T('Name')}, > ) > > Is there a way to pass my previously defined labels to the SQLTABLE? > > where the 'labels' are stored? I tried db.category.labels, > db.category['labels'] ? > > Thanks > > -- > > Bruno Rocha > http://about.me/rochacbruno/bio > -- Bruno Rocha http://about.me/rochacbruno/bio