Hi Massimo, So what do you think about the following idea? If it is ok for you, I can commit a low-priority issue in google code, just to avoid it being forgotten.
Regards, Ray On Oct 30, 10:52 pm, Anthony <abasta...@gmail.com> wrote: > Probably just settings.table_user_format (i.e., the format for the user > table), and maybe settings.table_group_format as well. > > Anthony > > > > > On Sunday, October 30, 2011 10:48:25 AM UTC-4, Ray (a.k.a. Iceberg) wrote: > > > 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 <abas...@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 chance to customize it. Currently we can > > > > not override this value at all. > > > > > Regards, > > > > Ray