no problem
On Jun 30, 5:14 pm, MikeEllis <michael.f.el...@gmail.com> wrote:
> Think I've found a solution:
>
> in db.py:
> session.tabledescriptions = {}
> session.tabledescription['blah'] = "Whatever"
>
> in appadmin.html index handler:
> ...
> {{=session.tabledescriptions['table']}}
> ...
>
> Seems to work correctly as long as all tables have descriptions and
> raises a decipherable error.
>
> Any known problems with using session this way?
>
> Cheers,
> Mike
>
> On Jun 30, 4: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
-~----------~----~----~----~------~----~------~--~---