@Bruno,
> are you creating the form object before or after this?
> You need to specify attributes before the creation of the form object.
Thanks for your reply, you were right, I had to put the lines of code
before form=
This works:
def user():
....
if request.args(0)=='profile':
db.auth_user.comment.readable=False
db.auth_user.comment.writable=False
db.auth_user.reply.readable=False
db.auth_user.reply.writable=False
form=auth()
....
return dict(form=form)
@Richard,
> Maybe you can try at the model level?
Thanks for your reply. I am not sure, in my app users with different
roles see different parts of the auth_user table, the comment and
reply field are there for the administrator, see this post:
http://groups.google.com/group/web2py/browse_thread/thread/971b68b273acdfbf
Kind regards,
Annet