you can do db.table.description="...." I think
On Jun 30, 3:05 pm, MikeEllis <michael.f.el...@gmail.com> wrote:
> What's the recommended way to associate a text description with each
> table created in the model file and display the description beside the
> table listings in appadmin.py/index? I'm looking to do something like
> the following:
>
> in db.py:
> ...
> db.define_table('blah',....)
> db.blah.description("Records contain a lot of blather and many other
> important things")
> ...
>
> in appadmin.html.index():
> ...
> {{=table.descriptions}}
> ...
>
> but the 'db' and 'table' variables obtained from sorted(databases)
> appear to be strings rather than database objects.
>
> Thanks,
> Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---