[web2py] Re: setting up using auth confusion

2011-10-24 Thread Anthony
On Monday, October 24, 2011 7:06:12 PM UTC-4, lucas wrote: > > ok, i tried the auth.add_permission(group_id=2, name="read", > table_name="news") line and just stuck it under db.py. i still can't > get a True out of the has_permission('read') or has_permission(2, > 'read') or has_permission(grou

[web2py] Re: setting up using auth confusion

2011-10-24 Thread lucas
btw, i am using 1.98.2 and will probably upgrade to 1.99.2 soon.

[web2py] Re: setting up using auth confusion

2011-10-24 Thread lucas
ok, i tried the auth.add_permission(group_id=2, name="read", table_name="news") line and just stuck it under db.py. i still can't get a True out of the has_permission('read') or has_permission(2, 'read') or has_permission(group_id=2, name='read'), nothing. your second suggestion gets me thinking.

[web2py] Re: setting up using auth confusion

2011-10-24 Thread Anthony
On Monday, October 24, 2011 5:29:41 PM UTC-4, lucas wrote: > > ok, that was totally helpful, thanx for all of the help. > > i have gotten far, using has_membership and requires_membership often > and working perfectly, both in controllers and views. > > having a bit of a problem with auth.has_pe

[web2py] Re: setting up using auth confusion

2011-10-24 Thread lucas
ok, that was totally helpful, thanx for all of the help. i have gotten far, using has_membership and requires_membership often and working perfectly, both in controllers and views. having a bit of a problem with auth.has_permission(). i have a group/ role, auth_group id=2, called Guest and under

[web2py] Re: setting up using auth confusion

2011-10-24 Thread Anthony
On Monday, October 24, 2011 8:04:25 AM UTC-4, lucas wrote: > > > first i want to shutoff the default of creating a new group for each > registered person. what is the setting to override that default > behavior? > auth.settings.create_user_groups = False See http://web2py.com/book/default/chap