is there any way to provide permission to the admin to update and delete 
data from the table and provide user only to read it?

 
db = DAL("postgres://postgres:postgres@localhost:5432/tripti1")
from gluon.tools import Auth
auth = Auth(db)
auth.define_tables(username=False,signature=False)



db.define_table('stud_person',
                  Field('image', 'upload'),
                  Field('first_name', requires=IS_NOT_EMPTY()),
                  Field('middle_name', requires=IS_NOT_EMPTY()),
                  Field('last_name', requires=IS_NOT_EMPTY()),
                  Field('email_id', requires=IS_NOT_EMPTY()))


till now i have done this after this what to do i'm not getting?can anyone 
help me???

-- 
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.

Reply via email to