currently;

I am doing a select after an insert to look up the values of a row;

For example; the registration key when using the default "register" application;

But I think there must be an easier way;

If anyone has a "best practice" suggestion I would appreciate it;

currently the code looks like this;

if form.accepts(request.vars):
    id = form.vars.id;
    row = db(db.auth_user.id=id).select();
    session.flash= row.registration_key


Reply via email to