Re: [web2py] auth_permission

2016-02-27 Thread Massimo Di Pierro
you just do it normally but you have to make sure you tell auth: auth = Auth(db) db.define_table('auth_permission', ...) It must have these fields: Field('group_id', reference_table_group) Field('name', default='default', length=512), Field('table_name', length=512), Field('record_id',

Re: [web2py] auth_permission

2016-02-27 Thread prashant joshi
hows it?? give me any example On Sat, Feb 27, 2016 at 2:42 AM, Richard Vézina wrote: > Yes why not? > > As long as you populate them correctly it all fine to do it... > > Richard > > On Fri, Feb 26, 2016 at 11:08 AM, prashant joshi >

Re: [web2py] auth_permission

2016-02-26 Thread Richard Vézina
Yes why not? As long as you populate them correctly it all fine to do it... Richard On Fri, Feb 26, 2016 at 11:08 AM, prashant joshi wrote: > we can create permissin table in manually > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

[web2py] auth_permission

2016-02-26 Thread prashant joshi
we can create permissin table in manually -- 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

[web2py] auth_permission for group of records based on column value?

2015-05-10 Thread Alex Glaros
is there a way to use auth_permission to allow user to modify a large number of records based upon field value? right now in auth_permission we can only specify one record_id in a table. what about all records in a table whose field matches: organization_id = 'IBM'? is there a way to allow

[web2py] auth_permission at Unittest

2014-11-03 Thread Pedro Henrique Correa Ferreira
Hello, buddies I'd like to know how can I run a Unittest in a fuction that requires permission. The function is the following: @auth.requires_permission('accessible', URL(request.controller,'pessoa')) def pessoa(): print URL(request.controller,'pessoa') grid = SQLFORM.grid(db.pessoa,

[web2py] auth_permission in multiple db configuration

2010-11-23 Thread kralin
Hi, I've got a sistem with multiple db, some are SQLlite, some are postgresql and one in MSSQL. is there a way to use auth authorization within tables that do not belongs to the db where auth data is specified? in the auth_permission table, I'm only required to add a table name, but what if the

[web2py] auth_permission limitation?

2010-06-27 Thread Kuba Kucharski
THE PROBLEM IS ABOUT APPADMIN AND RENDERING DEFAULT CRUD ON AUTH_PERMISSION TABLE. to reproduce: 1: initialize new app 2: add a table in db.py 3: go here: http://127.0.0.1:8001/app/appadmin/insert/db/auth_permission and check whether you can assign permissions to your new table in dropbox(table