Re: [web2py] How to set the auth.user.id as the default value for a field in a SQLFORM

2013-08-05 Thread hunt graham
Worked like a charm thanks! On Monday, August 5, 2013 4:18:45 PM UTC-4, viniciusban wrote: > > You must set writable=False and readable=False in your "user_id" field. > > On Mon, Aug 5, 2013 at 4:20 PM, hunt graham > > > wrote: > > Hello all, > > > > Been using web2py for about a week and lo

Re: [web2py] How to set the auth.user.id as the default value for a field in a SQLFORM

2013-08-05 Thread Vinicius Assef
You must set writable=False and readable=False in your "user_id" field. On Mon, Aug 5, 2013 at 4:20 PM, hunt graham wrote: > Hello all, > > Been using web2py for about a week and loving it so far. In particular the > built in access control is great coming from Flask. > > I'm having some issues

[web2py] How to set the auth.user.id as the default value for a field in a SQLFORM

2013-08-05 Thread hunt graham
Hello all, Been using web2py for about a week and loving it so far. In particular the built in access control is great coming from Flask. I'm having some issues referencing auth_user from other db fields though. In the following view (company.html) I have a SQLFORM for the 'company' table.