[web2py] Re: crud auth and user without login

2010-03-22 Thread szimszon
Okay I see. Good tip the authenticated_crud_create = auth.requires_login()(crud.create) form = authenticated_crud_create(db.tablename) :) On márc. 22, 15:21, mdipierro wrote: > yes but how depends on details > > you can do > > @auth.requires_login() > @auth.requires_membership() > @auth.requ

[web2py] Re: crud auth and user without login

2010-03-22 Thread mdipierro
yes but how depends on details you can do @auth.requires_login() @auth.requires_membership() @auth.requires_permission() @auth.requires(other... condition...) to every function in web2py. Here is a neat trick authenticated_crud_create = auth.requires_login()(crud.create) form = authenticated_cr