James Bennett | 1 Feb 2008 02:31
Picon

Re: User permissions


On Jan 31, 2008 5:06 PM, Chris <macmichael01 <at> gmail.com> wrote:
> I've been reading up on user permissions and I have found that user
> permissions are on a per-model basis. My question: If I have a photo
> gallery application, and I have several uses who can post their
> galleries to this application. Is there a way to create permission on
> a per-user basis. Example maybe I created a gallery called 'The
> Rockies' but I only want Bob, Susan, and Tim to see it, Is this
> possible with the built in permissions? or would I have to create a
> table column similar to is_public = models.booleanField().

If all you're worrying about is the public display and/or non-admin
forms, it's fairly simple to do the necessary check in your own code
based on data stored in the model object. Depending on the exact
nature of the check, you might even be able to write a decorator to
handle it for you.

In the admin it's basically not possible right now, but will become
very easy in the not-too-distant future.

--

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

Erwin | 6 Feb 2008 18:57
Picon

Re: User permissions


> In the admin it's basically not possible right now, but will become
> very easy in the not-too-distant future.

That sounds quite interesting, but I'm not totally sure what you are
referring to. Do you mean the hooks the newforms admin branch provides
or maybe the possibilities of the row-level permissions branch?

(The progress of the latter is quite unclear to me, besides some
remarks on this group about postponing it, untill after newforms admin
branch is finished.
http://groups.google.com/group/django-users/browse_thread/thread/630713d903dec1d2/ac8761d863ac9adb#ac8761d863ac9adb)

How long does will it take is from now to the not-too-distant future?
Hopefully you really have some good news for me :)
--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

James Bennett | 6 Feb 2008 19:07
Picon

Re: User permissions


On Feb 6, 2008 11:57 AM, Erwin <erwinelling <at> gmail.com> wrote:
> That sounds quite interesting, but I'm not totally sure what you are
> referring to. Do you mean the hooks the newforms admin branch provides
> or maybe the possibilities of the row-level permissions branch?

newforms-admin.

row-level-permissions is, as far as I can tell, made obsolete by
newforms-admin -- adding a complex syntax for object-level permissions
is moot when you have the stuff newforms-admin provides.

> How long does will it take is from now to the not-too-distant future?

Some amount of time between "now" and "the heat death of the
universe". There is no estimate, no timeline, no schedule, no ETA, no
guess, nor any other synonym of any of those words.

--

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Jacob Kaplan-Moss | 6 Feb 2008 23:38
Picon

Re: User permissions


On 2/6/08, James Bennett <ubernostrum <at> gmail.com> wrote:
> Some amount of time between "now" and "the heat death of the
> universe". There is no estimate, no timeline, no schedule, no ETA, no
> guess, nor any other synonym of any of those words.

... though given the choices, I'd be inclined to wager that it's
closer to "now" than to "the heat death of the universe"...

Jacob

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

James Bennett | 6 Feb 2008 23:52
Picon

Re: User permissions


On Feb 6, 2008 4:38 PM, Jacob Kaplan-Moss <jacob.kaplanmoss <at> gmail.com> wrote:
> ... though given the choices, I'd be inclined to wager that it's
> closer to "now" than to "the heat death of the universe"...

Probably, but I always include that in the time scale just in case.
You know how tricky it is to estimate software development.

--

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Erwin Elling | 7 Feb 2008 09:42
Picon

Re: User permissions


> Probably, but I always include that in the time scale just in case.
> You know how tricky it is to estimate software development.

I understand; nevertheless your estimates are highly appreciated.
Hopefully Jacob is right about it being closer to now... :)
Untill that time, I guess I'll just start playing with the newforms-
admin branch!

Thanks for clearing things up.
--~--~---------~--~----~------------~-------~--~----~
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 <at> googlegroups.com
To unsubscribe from this group, send email to django-users-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane