I am using the default web2py login mechanism;

I am not sure where I can run additional queries after a successful login?

I tried doing

def load_settings(f):
    settings = db.settings(db.settings.user == f.id)
    session.settings = settings
    return


auth.settings.login_onaccept = lambda f:load_settings(f)

This anyway throws an exception;

Even if this were to work; would this be the best place to do this?

I want to store the settings on the "Profile" page

The settings are read only on that page they click a link to modify the setting which handles all the CRUD methods.

Any advice would be greatly appreciated.

Thanks.


Reply via email to