On Monday, June 15, 2015 at 4:57:51 AM UTC-4, zimani wrote: > > hi Anthony, i apologise for the late response, i had no access to the > internet the whole weekend. > > Maybe i should clarify. I am customising this from one of your tutorials > "Web development with python and web2py " part 1 and 2 > The 'user' in this case is the person that posted a post. Hence if i use > auth.user it makes all posts be written by the currently logged in user. > I guess my challenge is extracting the value of 'usealiasname' If its true > or not for that user that posted. i tried the 'user.usealiasname' but it > says that user has no attribute 'usealiasname' > But thank you for all the help. >
In your original code, both "me" and "user" refer to the same record, so there is no need for both. Anyway, if you have a record from db.auth_user and it says there is no "usealiasname" attribute, then there is a problem elsewhere in your code. Hard to say where without seeing all the code. Anthony -- 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. For more options, visit https://groups.google.com/d/optout.