> auth.add_permission('run_this',group_id=id.group('role1'))
I don't think that works. I had to do this:
auth.add_permission(auth.id_group('role1'), 'run_this')
And that adds a new row to the auth_permission table every time it
runs, so it should be run once and not added to the model as I had
assumed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---