Christian:

Thanks... I also found this:

http://packages.python.org/django-authority/



On Sep 10, 4:20 pm, Christian Schilling <initcr...@googlemail.com>
wrote:
> I wrote an app for this some time ago, i use it in production without
> problem 
> since:http://github.com/initcrash/django-object-permissions/tree/master
>
> its quite easy to use (look at the testcases):
>
> when you add it to your project every model gets an additional "edit
> all" permission that allows
> giving certian users access to everything.
>
> it includes an ModelAdmin subclass that can be used as base for your
> admin
> classes to provide admin integration (permission enforcement and
> permission editing)
>
> On Sep 10, 12:56 pm, eka <ekagauranga...@gmail.com> wrote:
>
> > Yes... the important thing in my case is that Images has no owner,
> > they are imported from an external system.
> > So I would want a way to give users access to certain Images.
>
> > On 10 sep, 07:18, Sean Kemplay <sean.kemp...@pythonicity.co.uk> wrote:
>
> > > Maybe not exactly what you are after, however I have a user profile that
> > > links to an account model. Everything model that instances need to be
> > > owned by a user has a foreign key to the account model.  When I want to
> > > retrieve anything that is owned by an account I get the account from the
> > > user profile, and retrieve the instance through it.  eg
> > > account.domain_set.get(<whatever criteria>).  If it throws an error, it
> > > doesnt exist or isnt owned by that account.  This stops url manipulation
> > > as far as I can tell.
>
> > > Sean
>
> > > On Wed, 2009-09-09 at 16:37 -0700, eka wrote:
> > > > Hi all..
>
> > > > Is there any way to assign permissions to an instance of a model
> > > > instead of to a model itself?
>
> > > > Example:
>
> > > > I have a model for Files so john can (view) file 1, 5 and 6 but not
> > > > the rest
>
> > > > Regards
>
> > > > Eka
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to