Thanks Steve awesome.

On Thursday, December 12, 2013 12:24:21 PM UTC-6, Michel Hayek wrote:
>
> Hey guys,
>
> *I have this in the db.py*
>
> *db.define_table('t_usertypes',*
> *                Field('f_usertype',label='User Type :', required=True, 
> notnull=True),*
> *                format='%(f_usertype)s')*
>
> *I have this in default.py*
>
> *def usertypes():*
> *   form=SQLFORM(db.t_usertypes)*
> *   if form.accepts(request.vars,session):*
> *        session.flash="The new user type has been successfully added!"*
> *        redirect(URL(r=request))*
> *        grid=SQLFORM.grid(db.t_usertypes)*
> *   return dict (grid=grid)*
>
> *The html file contains this *
>
> *<div id="mydiv" class="mydiv">*
> *User Types*
> *{{=BEAUTIFY(response._vars)}}*
>
> *{{db.t_usertypes}}*
> *</div>*
>
> How i can enable/disable users from insert, delete, update.
>
> is the best choice to show / hide the ADD, DELETE, UPDATE links?
> if so how can this be done?
>
> Thanks
>
> *This e-mail is confidential and may also be privileged. If you are not 
> the intended **recipient, please notify the sender immediately, delete it 
> from your system and do **not copy, disseminate, distribute or disclose 
> any information contained therein.*
>

-- 
 

*This e-mail is confidential and may also be privileged. If you are not the 
intended **recipient, please notify the sender immediately, delete it from 
your system and do **not copy, disseminate, distribute or disclose any 
information contained therein.*

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

Reply via email to