Re: Implementation of Object Permissions

2012-05-10 Thread Lukasz Balcerzak
working project. > > *From:* Moritz S. > *Sent:* Friday, April 13, 2012 7:56 PM > *To:* django-developers@googlegroups.com > *Subject:* Implementation of Object Permissions > > Hi all, > > I have been using django for a while and became happy by the time I > d

Re: Implementation of Object Permissions

2012-04-27 Thread Moritz S.
> > Are there any hopes of speeding up or caching GenericForgeinKey queries ? > I found - > http://zerokspot.com/weblog/2008/08/13/genericforeignkeys-with-less-queries/ > > Adding 'db_index=True' to the GenericForeignKey's object_id field should be a significant performance enhancement. It w

Re: Implementation of Object Permissions

2012-04-27 Thread Daniel Sokolowski
my understanding of this limits me really to just the opinion level. From: Moritz S. Sent: Monday, April 23, 2012 8:39 PM To: django-developers@googlegroups.com Cc: tguett...@tbz-pariv.de Subject: Re: Implementation of Object Permissions With an appropriate index, SQL databases should be

Re: Implementation of Object Permissions

2012-04-23 Thread Moritz S.
> > With an appropriate index, SQL databases should be able to find rows > matching a condition on two columns about as quickly as if the condition > was only on one column, even in a table containing million of objects. > Databases can of course find the rows with appropriate indexes, but the

Re: Implementation of Object Permissions

2012-04-16 Thread Daniel Sokolowski
then creating a competing solution you instead contribute your skills and suggestions to an already working project. From: Moritz S. Sent: Friday, April 13, 2012 7:56 PM To: django-developers@googlegroups.com Subject: Implementation of Object Permissions Hi all, I have been using django for a

Re: Implementation of Object Permissions

2012-04-15 Thread Λlisue
Did you check my library ( django-permission: https://github.com/lambdalisue/django-permission )? which is not stable yet and has completely different approach to enable Object Permission in Django. I gave up database based object permission. If you have some article which is only visible for

Re: Implementation of Object Permissions

2012-04-15 Thread Aymeric Augustin
Hi Moritz, Thanks for your proposal! Here's my feedback. On 14 avr. 2012, at 01:56, Moritz S. wrote: > I found out about GenericRelations from the contenttypes framework. So you > could possibly use a single model called 'ObjectPermissions' or something and > link users, permissions and instanc

Re: Implementation of Object Permissions

2012-04-13 Thread Moritz S.
I checked the four most used solutions. The first three ones use GenericKeys (in my opinion not the ideal solution as I described above) and the fourth one as far as I can see does not use the auth permission backend but does permission handling on his own. -Moritz Am Samstag, 14. April 2012 02

Re: Implementation of Object Permissions

2012-04-13 Thread Mike Axiak
How does it compare to the solutions that already exist listed here? http://djangopackages.com/grids/g/perms/ -Mike On Fri, Apr 13, 2012 at 7:56 PM, Moritz S. wrote: > Hi all, > > I have been using django for a while and became happy by the time I > discovered the auth module that supports per

Implementation of Object Permissions

2012-04-13 Thread Moritz S.
Hi all, I have been using django for a while and became happy by the time I discovered the auth module that supports permission handling. But this module turned out to only be able to handle model based permissions. I could not imagine django of not having such a basic functionality (in my opi