So how can I grab last_name during a register function and save it to an already defined table?
Thanks On Aug 17, 4:52 pm, mdipierro <[email protected]> wrote: > gluon/tools.py is a module and it is imported before your app is > executed. The web2py globals variables are not exposed there. > > On Aug 17, 4:46 pm, NetAdmin <[email protected]> wrote: > > > in gluon/tools.py, I'm trying to modify the register() function > > to save request.vars.get('last_name', None ) to a table defined in > > db.py as > > db.define_table('tbextra', > > SQLField('lastn', 'string', length = 15 ) > > ) > > but tools.py does not recognize the db part of db.tbextra.lastn > > I thought variables in the model files were global. > > > What am I doing wrong? > > > Thanks

