Just for the record, this works for me {
2.11.2-stable+timestamp.2015.05.30.16.33.24
(Running on Apache/2.4.7 (Ubuntu), Python 2.7.6)}auth.define_tables(username=False, signature=False) db.auth_user.last_name.writable = db.auth_user.last_name.readable = False On Wednesday, December 11, 2013 at 9:00:36 AM UTC-8, Leonel Câmara wrote: > > Are you doing this before or after you call auth.define_tables ? > > If after, what happens if you do this instead: > > db.auth_user # Just to check if some lazy table weirdness is going on > db.auth_user.first_name.readable = db.auth_user.first_name.writable = > False > db.auth_user.last_name.readable = db.auth_user.last_name.writable = False > > > > Quarta-feira, 11 de Dezembro de 2013 12:25:24 UTC, Warrick escreveu: >> >> Prior to updating to 2.8.2 I could user the following code to hide the >> fields: >> >> db.auth_user.first_name.readable = db.auth_user.first_name.writable = >> False >> db.auth_user.last_name.readable = db.auth_user.last_name.writable = False >> >> However, now I receive an error: >> >> <type 'exceptions.AttributeError'> 'DAL' object has no attribute >> 'auth_user' >> >> >> any suggestions? >> > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

