As far as I know auth.user.id should work. However, I faced a similar
problem and solved it by setting the default in the function,
something like:


def add_comment():
    ....
    db.comment.user.default=auth.user.id
    ....
    return dict(...)


Maybe someone else can provide you (and me) with an explanation.


Kind regards,

Annet

Reply via email to