Yes, that issue has been 
reported: http://code.google.com/p/web2py/issues/detail?id=349

Anthony

On Friday, September 9, 2011 11:13:04 PM UTC-4, monotasker wrote:
>
> One other thing: When I try to create a new permission (on 
> db.auth_permissions) the selectbox for the "Table name" field isn't 
> showing any of my custom tables. It's only populated with the built in 
> auth tables. Is this the way it's supposed to be? I thought that I 
> could create a permission that links a group name with any table in 
> db. 
>
> Thanks again, 
>
> Ian 
>
> On Sep 9, 6:14 pm, Massimo Di Pierro <[email protected]> 
> wrote: 
> > Basically you default they do nothing. You can take the fields to mean 
> > what you want. You can set them auth.add_persmission(...) and you can 
> > check them auth.has_permission(...) or with decorator 
> > @auth.requires_permission(...). 
> > 
> > Things change if you set 
> > 
> > crud.settings.auth = auth 
> > 
> > in this case crud will recognize permissions with names = 
> > 'read','create','update','delete', and 'select' on the tables that you 
> > have specified. The record_id is optional. If not set the permission 
> > applied to the entire table. If set the permission applied to the 
> > record only. 
> > 
> > Hope this helps. There is not much more to it really. 
> > 
> > On Sep 9, 4:31 pm, monotasker <[email protected]> wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > I'm climbing up the learning curve with web2py (which really isn't 
> > > very steep compared to other tools I've worked with!) and have run 
> > > into something that I can't figure out from the book: the permissions 
> > > system. When I create a "permission" in auth_permissions (using 
> > > appadmin) I don't understand what each of the field values does 
> > > (table? name?). The book seems to skip over this very quickly. 
> > 
> > > (I feel compelled to add that the book is the best official 
> > > documentation I've ever seen for an open source project, with nowhere 
> > > near the lag or holes in jQuery or Drupal docs. I bought the pdf 
> > > version because I know the time investment that represents!). 
> > 
> > > Ian

Reply via email to