Hi all,

I'm trying to use the callbacks for auth.settings.register_onvalidation.
I first put the function in controllers, when I discovered it should be in 
models as the settings are there.
Now I have them in models, but I get a invalid syntax error on the last 
line:

def register_new_table_token():
    auth.user.last_opened = session.table_token
    auth.add_membership(auth.add_group(session.table_token),auth.user.id)
    auth.user.my_budgets.append(session.table_token)
    return

This happens both when I have pass instead of return or I don't enter a 
return statement.

Please help,

Thanks,

Tsvi

Reply via email to