I have extended the auth_user table with an extra field:
auth.settings.extra_fields['auth_user']=[
                                         Field('isactive','boolean', default
=True,
                                               readable=False, writable=
False),
                                         ]
And I would like a web page listing only specific fields:
def lab_managers():
    dba = db.auth_user
    dba.islm.readable=dba.islm.writable=True
    grid=SQLFORM.grid((dba.isactive==True),
                      fields=[dba.username, dba.isactive],
                      deletable=False,
                      onvalidation=enter_user
                          )
    return dict(grid=grid)
where enter_user is a function checking and entering a user in respect to 
Ldap directories.

Now, I would like the 'Add' and the 'Edit' functions to present to the user 
only the 2 fields 'username' and 'isactive'. Not all the Fields of the 
auth_user table. 
Is this possible?




-- 

--- 
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/groups/opt_out.


Reply via email to