Great idea! In trunk: db._referee_name = '%(table)s' # default
and you can do db._referee_name = 'prefix_%(table)s_%(field)s' This may still break plugins. Anyway, please check it. On Aug 16, 10:23 am, Carlos <[email protected]> wrote: > Hi Massimo, > > What about having a new 'referee_prefix' var in DAL, which defaults to > empty string, and replacing: > > colset[referee_table] = Set(db, s == id) > > with: > > colset[*referee_prefix+*referee_table] = Set(db, s == id) > > And then just have a way to override this 'referee_prefix' value as a web2py > setting or so. > > This way backward compatibility will not be broken (because of the initial > default empty string value) and we can change the way we access such back > references. > > Can this be included in trunk?. > > Thanks, > > Carlos

