Using this code,

File "apps/_scaffolds/controllers.py", line 82, in index 
db.posts.insert(message="Welcome "+auth_user.first_name+'.'+' Thank you for 
signing in with us. Blah blah blah.', author=auth.user_id, 
created_by=auth.user_id, modified_by=auth.user_id) 


I get an error:


NameError: name 'auth_user' is not defined

I also tried:


Auth.first_name;
auth.first_name;
auth.user.first_name



and the errors are the same


Please help here.


Regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/00b6213f-074e-4e80-b3a9-c8946e7541c0%40googlegroups.com.

Reply via email to