auth.user.id
On Mar 3, 12:55 am, weheh <richard_gor...@verizon.net> wrote:
> db.py:
> db.define_table('test',SQLField('auth_user',db.auth_user),SQLField
> ('name','string'))
>
> controller.py:
> def create():
> form=FORM(...)
> if form.accepts(request.vars,session):
> id=db.test.insert
> (name=form.vars.name,auth_user=db.auth_user) ???????
>
> Question -- how do I create the link to the current logged-in
> auth_user?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---