Re: "Ownership" role for objects...

2005-10-13 Thread Laurent RAHUEL
I would be glad to answer your question but since I left my parents I stopped answering to orders. I really dislike the way you're talking to everyone. I'm sorry not to be a Guru as you seem to be. Regards, Laurent

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Jason Huggins wrote: > Robert Wittams wrote: > >>The reports probably have an "owner" foreign key to the auth.User class, >>right? Then this is the owner. This would be exposed by an additional >>method. > > > Would this be trickier if I want to allow a particular user or a group > to have acce

Re: "Ownership" role for objects...

2005-10-05 Thread Jason Huggins
Robert Wittams wrote: > The reports probably have an "owner" foreign key to the auth.User class, > right? Then this is the owner. This would be exposed by an additional > method. Would this be trickier if I want to allow a particular user or a group to have access? > 6) needs a little refinement

Re: "Ownership" role for objects...

2005-10-05 Thread Joshua D. Drake
> > I don't agree with this sentiment. > > You want ACLs, I don't. This isn't actually a sentiment, but a bald > statement of positions. Why not have a system that allows them but does > not force them into every situation? I don't have a problem with that at all. If you don't want to use ACLs

Re: "Ownership" role for objects...

2005-10-05 Thread Eugene Lazutkin
"Jason Huggins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Okay, I'm hearing lots of arguments and assertions without proof (from > anyone). Let's try to tone down the emotion here. I simply have a > business requirement that I need to figure out, and I'm kind of stuck > on h

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Jason Huggins wrote: > > Robert Wittams wrote: > >>Kindly explain how these cases are harder to manage in the model than >>with an ACL system. Hint: they are easier. > > > Okay, I'm hearing lots of arguments and assertions without proof (from > anyone). Let's try to tone down the emotion here.

Re: "Ownership" role for objects...

2005-10-05 Thread Jason Huggins
Robert Wittams wrote: > Kindly explain how these cases are harder to manage in the model than > with an ACL system. Hint: they are easier. Okay, I'm hearing lots of arguments and assertions without proof (from anyone). Let's try to tone down the emotion here. I simply have a business requirement

Re: "Ownership" role for objects...

2005-10-05 Thread Laurent RAHUEL
Le Mercredi 5 Octobre 2005 14:49, Robert Wittams a écrit : > Laurent RAHUEL wrote: > > The question is not : Do I want to use ACL's ? > > but : Do django need a better permissions managment ? > > > > You can do wathever you want if you're root on your server but you > > certainly don't wan't any u

Re: "Ownership" role for objects...

2005-10-05 Thread Paul Bowsher
I think y'ure missing my point. My APP doesn't need any permissions framework, the only access to it is via ssh. I am the only user on the box, it's not exposed on the web, it's purely command line, so why do I need ACLs ANY auth framework? ANY proposed auth framework should be completely optional

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Laurent RAHUEL wrote: > The question is not : Do I want to use ACL's ? > but : Do django need a better permissions managment ? > > You can do wathever you want if you're root on your server but you certainly > don't wan't any user to be able to do the same. > We can certainly agree on that. Dj

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Laurent RAHUEL wrote: > Le Mercredi 5 Octobre 2005 13:01, Robert Wittams a écrit : > >>Joshua D. Drake wrote: >> Moreover, if you don't need a lot of permissions checking, then you just need a few basic ACL rules to do the job. >>> >>>I know I am new here but a basic ACL is pretty common

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Laurent RAHUEL wrote: > I would be glad to answer your question but since I left my parents I > stopped answering to orders. I really dislike the way you're talking to > everyone. I'm sorry not to be a Guru as you seem to be. > > Regards, > > Laurent > > Well, sorry if I annoyed you, but bein

Re: "Ownership" role for objects...

2005-10-05 Thread Laurent RAHUEL
The question is not : Do I want to use ACL's ? but : Do django need a better permissions managment ? You can do wathever you want if you're root on your server but you certainly don't wan't any user to be able to do the same. Regards, Laurent Le Mercredi 5 Octobre 2005 13:57, Paul Bowsher a

Re: "Ownership" role for objects...

2005-10-05 Thread Paul Bowsher
I agree with Robert. I don't need ANY authorisation for one of my apps, as it's purely run on the command line so you'd need to ssh in anyway. Why should I have ACLs forced upon me? Putting this in each model is by far the sanest and fairest way of doing it. On 10/5/05, Laurent RAHUEL <[EMAIL PRO

Re: "Ownership" role for objects...

2005-10-05 Thread Laurent RAHUEL
I would be glad to answer your question but since I left my parents I stopped answering to orders. I really dislike the way you're talking to everyone. I'm sorry not to be a Guru as you seem to be. Regards, Laurent

Re: "Ownership" role for objects...

2005-10-05 Thread Laurent RAHUEL
Le Mercredi 5 Octobre 2005 13:01, Robert Wittams a écrit : > Joshua D. Drake wrote: > >>Moreover, if you don't need a lot of permissions checking, then you just > >> need a few basic ACL rules to do the job. > > > > I know I am new here but a basic ACL is pretty common place in any kind > > of adv

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Joshua D. Drake wrote: >>Moreover, if you don't need a lot of permissions checking, then you just need >>a few basic ACL rules to do the job. >> > > I know I am new here but a basic ACL is pretty common place in any kind > of advanced development. Hm, this sounds strangely like "advanced devel

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
> > I'm not really convinced by your arguments because : > > - You may be allowed to add a CD to your collection, but not mine. > - You may be allowed to add a CD to some categories of my collection > - You may be allowed to add a transaction to my account1 but not to my > account2 whenever you

Re: "Ownership" role for objects...

2005-10-05 Thread Robert Wittams
Laurent RAHUEL wrote: > Hi, > > Le Mercredi 5 Octobre 2005 09:30, hugo a écrit : > >>No, I think what would be needed is a simple framework that makes >>permission calculation easier, but that still should be activated by >>the model and the views. Preferreable by the model, because then the >>a

Re: "Ownership" role for objects...

2005-10-05 Thread Laurent RAHUEL
Hi, Le Mercredi 5 Octobre 2005 09:30, hugo a écrit : > No, I think what would be needed is a simple framework that makes > permission calculation easier, but that still should be activated by > the model and the views. Preferreable by the model, because then the > automatic admin can take advanta

Re: "Ownership" role for objects...

2005-10-05 Thread hugo
Hi, > I don't think it is a maybe for django users/developers. If Django wants > to take off it is going to need some type of ACL otherwise people are > just going to develop their own and you will end up with a bunch of > different implementations Sorry, but that's a strawman. Django _has_ take

Re: "Ownership" role for objects...

2005-10-04 Thread Jason Huggins
Joshua D. Drake wrote: > > Maybe django core doesn't need ACL's, maybe django users will need ACL's > > I don't think it is a maybe for django users/developers. If Django wants > to take off it is going to need some type of ACL otherwise people are > just going to develop their own and you will en

Re: "Ownership" role for objects...

2005-10-04 Thread Simon Willison
On 4 Oct 2005, at 16:00, Jason Huggins wrote: So... does anyone have any thoughts on how to implement "ownership" in Django? What would define "ownership"? (Any object you create and any object you're granted permissions to edit? Do we need to track ownerhip at the object level? How should

Re: "Ownership" role for objects...

2005-10-04 Thread Robert Wittams
Jason Huggins wrote: > One big thing I'm missing in Django is the concept of object > "ownership"... Here's my use case: > Lets say I have 3 users: > 1) Superuser - that's me... I can create or edit anything > 2) Bob - He only has permission to create, edit, or delete expense > reports that he own

Re: "Ownership" role for objects...

2005-10-04 Thread Joshua D. Drake
> Moreover, if you don't need a lot of permissions checking, then you just need > a few basic ACL rules to do the job. > I know I am new here but a basic ACL is pretty common place in any kind of advanced development. It just depends on where you do it. You could do it in PostgreSQL for example

Re: "Ownership" role for objects...

2005-10-04 Thread Laurent RAHUEL
Le Mercredi 5 Octobre 2005 01:02, Robert Wittams a écrit : > This is another ridiculously overcomplicated system that has been > designed to try to take care of every problem, whilst proliferating > database entries like there is no tomorrow, and bewildering users and > administrators beyond belie

Re: "Ownership" role for objects...

2005-10-04 Thread Ian Maurer
On 10/4/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > > This is another ridiculously overcomplicated system that has been > designed to try to take care of every problem, whilst proliferating > database entries like there is no tomorrow, and bewildering users and > administrators beyond belief.

Re: "Ownership" role for objects...

2005-10-04 Thread Robert Wittams
This is another ridiculously overcomplicated system that has been designed to try to take care of every problem, whilst proliferating database entries like there is no tomorrow, and bewildering users and administrators beyond belief. There is *no* authorisation system that is going to satisfy eve

Re: "Ownership" role for objects...

2005-10-04 Thread Robert Wittams
Sending again, since it seemed to get lost We had the same discussion before. The point is not anything as specific as ownership. It is authorisation in general. The only way to do this generically, without enforcing a horrendous zope-alike nightmare of per-object acls, is to allow the auth

Re: "Ownership" role for objects...

2005-10-04 Thread Ian Maurer
One thing I had complete for a pet framework I was working on (that was until Django appeared and blew mine away ;) was a "policy" structure that allowed for ownership and other features that I liked. I was going to pull it out and re-use it in the project I am working on, but I figure it is wort

"Ownership" role for objects...

2005-10-04 Thread Jason Huggins
One big thing I'm missing in Django is the concept of object "ownership"... Here's my use case: Lets say I have 3 users: 1) Superuser - that's me... I can create or edit anything 2) Bob - He only has permission to create, edit, or delete expense reports that he owns. (He can "own" something he cre