Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=tenant#Common-fields-and-multi-tenancy On Wed, Oct 30, 2013 at 2:01 PM, Dave S wrote: > > > On Wednesday, October 30, 2013 6:48:51 AM UTC-7, Richard wrote: >> >> If you have two diffrents companie you may cons

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Dave S
On Wednesday, October 30, 2013 6:48:51 AM UTC-7, Richard wrote: > > If you have two diffrents companie you may consider multi-tenant site. > What's your recommended readling list for this? /dps > > Richard > > > On Wed, Oct 30, 2013 at 9:47 AM, Richard Vézina > > > wrote: > >> It depends

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
If you have two diffrents companie you may consider multi-tenant site. Richard On Wed, Oct 30, 2013 at 9:47 AM, Richard Vézina wrote: > It depends of what you do with the groups... You have to write your own > logic around them... For instance you have driver group, so in your code > you let d

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-30 Thread Richard Vézina
It depends of what you do with the groups... You have to write your own logic around them... For instance you have driver group, so in your code you let driver group access only page/controller fucntion and form they are allow and in those controller you control the flow of what they can do the way

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-29 Thread raferbop
Richard, I am trying to create a number of number of groups, who are assigned users with different roles. A good example is where you have different taxi companies, that have its own dispatch personnel and drivers. For example, lets say you have 2 companies with the following employees; Compan

Re: [web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-29 Thread Richard Vézina
What do you want exactly? auth_membership is a many-to-many table that put in relation auth_user and auth_group... What do you mean by implement auth_group, etc. you don't need to, they are built-in web2py... If you explain more what you want exactly we can provide more insight on what you need..

[web2py] Any good tutorials on how to implement auth_group, auth_membership & auth_permissions?

2013-10-29 Thread raferbop
I am having a difficult time in understanding how to implement the above functions, and the chapter on authentication skims over the topic. Massimo has some great examples in the appliances section, but I haven't come across an example that utilizes a many-to-many relationship with respect to