Hello,
how can I automatically use the default labels of database fiels
(defined in db.py) as table headers?

As such:
SQLTABLE(rows_obj, headers=default_labels)

* Why would web2py not automaticaly use the lables defined in db.py

I tried:
headers = {}
for col in mydb.colnames:
    headers.update({mydb._db[tbl][fld] : mydb._db[tbl][fld].label})

But without success.


Thanks,
Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to