Nice comment Anthony. So I would like to mend my previous suggestion as: 1. the auth.define_tables(...) interface remains state quo 2. the auth.define_tables(...) implementation follows some new settings, e.g.
db.define_table( ..., format = self.settings.table_user_name_format) Regards, Ray On Oct 30, 10:12 pm, Anthony <abasta...@gmail.com> wrote: > I think you'd need different format arguments for auth_user and auth_group, > as they both have formats specified. > > Anthony > > > > > > On Sunday, October 30, 2011 9:48:04 AM UTC-4, Ray (a.k.a. Iceberg) wrote: > > > Hi Massimo, > > > How about add a new parameter to auth.define_tables()? As below. > > > def define_tables(..., format=''%(first_name)s %(last_name)s (% > > (id)s)"): > > ... > > db.define_table(..., format=format) > > ... > > > The idea is to let user has a change to customize it. Currently we can > > override this value at all. > > > Regards, > > Ray