Now I understand. Add this at the end of your db.py

db.auth_permission.table_name.requires = IS_IN_SET(db.tables)

You can specify the list of tables you want to give permissions on.

On May 27, 12:48 pm, David Marko <dma...@tiscali.cz> wrote:
> Yes, I just created a new app in web2py and added my model at the end
> of db.py .  I can see my table in list of tables in database admin, I
> can even create new records. I cant see this table name in list of
> tables when adding the new auth_permission usin appadmin. Combo box
> with tables names contains only  'auth_XXX' tables.
>
> I use latest web2py trunk version.
>
> David
>
> On 27 kvě, 19:39, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Not sure about the problem.
>
> > If you set crud.settings.auth=auth you have no permission on any table
> > (via crud) unless you explicitely say so. But this does not affect
> > appadmin.
>
> > The problem may be where you define the table. Is that done in a
> > model? Are you sure that is done after db.py?
>
> > On May 27, 12:21 pm, David Marko <dma...@tiscali.cz> wrote:
>
> > > Hello,
> > > Why I dont see my own tables in list if tables when creating
> > > permission entry in standard app admin interface? Only 'auth_XXX'
> > > tables are being listed here. Should I mark by tables somehow to be
> > > able to assign permissions for them using app admin?
>
> > > David

Reply via email to