Re: Enabling Row Level Permissions

2006-07-14 Thread Chris Long
How would you handle multiple checkers? I'm designing RLP to work on top of model level checking. Would it be: checker = (RowLevel, ModelLevel,) How is the order of permissions checking done if it is multiple? Is it the order they are specified as? One thing that will need to be done if it is

Re: Re: Enabling Row Level Permissions

2006-07-14 Thread Chris Long
> I actually hadn't thought of that. I thought there would be one and > only one type of checking for each model. I can't think of a use case > for multiple checkers, but then again it's Friday and my brain is a > little fried :) No worries about the fried brain, I can understand that. It's been

Generic Authorization Questions

2006-08-03 Thread Chris Long
Hi, I'm the SoC student working on row level permissions. Just a few questions about generic authorization for Joseph, and any one else who has input. 1) Will there be any support for the previous method of checking permissions? (e.g. will users.has_permission work?) 2) How are the two of us go

Re: Generic Authorization Questions

2006-08-03 Thread Chris Long
I'll try to be on tonight between 7 and 11 MT, I just finished off a 4 hour meeting and need to finish off some work then head home. I might be too tired to make it on tonight, but I'll certainly try. If not, I'll be around tomorrow from 9am to 3:00pm EST (7am to 1pm MT), or on Sat any time past

Re: Generic Authorization Questions

2006-08-03 Thread Chris Long
As an aside, if anyone is interested in this conversation, please let us know when you are available (on this topic) and we'll try working out a time for everyone. Otherwise, we'll post a log/summary of our conversation and decisions to keep everyone up to date. Chris --~--~-~--~~--

Generic Auth and Row Level Permissions

2006-08-04 Thread Chris Long
Hi, Joseph and I had a discussion today about how to work our two projects together. Here is what we decided upon. Because Joseph is currently implementing default_has_permission by using user.has_perm. I will be adding row level permissions to the user.has_perm method. To allow for this, user.h

Re: JavaScript and Changeset 3541

2006-08-09 Thread Chris Long
Hi, I'm the developer working on the branch. A few things, hopefully to answer your concerns. 1) The HTML and JS is written that the AJAX can be turned off very easily(currently it works better with JS disabled then enabled). And I plan on implementing a method of selecting if you wish to use t

Re: JavaScript and Changeset 3541

2006-08-10 Thread Chris Long
The main reason why I switched was more timing then anything else. I wanted to try a few different toolkits to practice with them and find out the differences. I have never touched AJAX before this summer. I tried Dojo first and did like it, and wrote some working code, which I should be able to

Checking Permission Template Tag

2006-08-14 Thread Chris Long
Hi, Joseph and I were talking earlier this evening about how to replace the permission wrapper context to allow for his generic auth and my row level permission. We could not determine a way to expand the current context processor to allow an object to be passed (if you have any ideas, please let

Row Level Permissions Update

2006-08-17 Thread Chris Long
Hi, I'm the GSoCer working on row level permissions. Row level permissions are now implemented and, in my test cases, are working. I wanted to find out if anyone has had an opportunity to try the row level permissions (per-object-permission) branch or read my wiki pages on it. Are there any com

Re: Row Level Permissions Update

2006-08-17 Thread Chris Long
r = (('edit'),('delete'),) > > This way we can specify what permissions the creator of an object has > on objects he or she creates through the Django administration > interface. > > Chris Long wrote: > > Hi, > > > > I'm the GSoCer worki

Re: Row Level Permissions Update

2006-08-18 Thread Chris Long
It's determined by the settings under the admin options. By default both are set to false, so no permissions will be creation. To do what you want: ... class Admin: grant_change_row_level_perm = True ... That should just set the change row levle permission and not set any delete row level per

Re: Row Level Permissions Update

2006-08-18 Thread Chris Long
My pleasure :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Django.contrib applications modifying Django to work properly?

2006-08-22 Thread Chris Long
Hi Mart, I'm the per-obect-perm developher. Depends on what magic you are looking for it to do. The row_level_permissions option in the meta class does two things that can be rewritten in a way that doesn't need to involve the db.options (meta class). The first thing the option does is create a

Re: Row level permission problem in admin for inline edited objects

2006-08-28 Thread Chris Long
Hi, With the select list, I am hoping for some general public opinion on how to handle this. If the user does not have change permissions on this, does this mean they can not see the object in the select list? I'm not sure if that would be a workable solution. A proposal: Create an additional "

Re: Row level permission problem in admin for inline edited objects

2006-08-31 Thread Chris Long
It would work, but there it's not very flexible. The current show_all_rows setting uses the change permission to determine if the object should be shown on the change list. Which makes sense, since the objects listed on the change list are those the user is able to edit. For a related object in a

Re: generic-auth and per-object-permission integration

2006-09-02 Thread Chris Long
Joseph Kocherhans wrote: > So I should probably get started on the generic-auth and > per-object-permissions (hereafter pop) integration soon. I've had > problems trying to merge changes from the trunk into the generic-auth > branch, so I'd just assume call that branch dead. The actual > generic-

Re: generic-auth and per-object-permission integration

2006-09-02 Thread Chris Long
Already had a few people point out some bugs and some features they want. Community involvement is key to get this moving ahead as quickly as possible. Chris Joseph Kocherhans wrote: > On 9/1/06, Linicks <[EMAIL PROTECTED]> wrote: > > > > Once (gen-auth/pop) are merged, what are the major barrie

Re: generic-auth and per-object-permission integration

2006-09-06 Thread Chris Long
Sometime over the next few days when I feel a bit more organized I'll merge it to trunk. Moving into a new house so everything has been a bit chaotic. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django d

Re: authentication data

2006-09-11 Thread Chris Long
The generic auth branch should allow you to create your own custom permission checking system easily. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send ema

Re: RowLevelPermissions SQL error

2006-09-12 Thread Chris Long
I'll take a look at it today. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group,

Re: RowLevelPermissions and OneToOne problem

2006-09-12 Thread Chris Long
Nope, not a correct assumption. Fixed in the latest version, I did try it with the model you have given and it does work, but the test was not as indepth (lack of time this week). So please give it a try and see if it fixes this problem. Chris --~--~-~--~~~---~--~--

Re: RowLevelPermissions SQL error

2006-09-12 Thread Chris Long
Latest changeset should fix it. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this grou

Re: RowLevelPermissions and OneToOne problem

2006-09-15 Thread Chris Long
Fixed in the latest revision. Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from th

Re: RowLevelPermissions and OneToOne problem

2006-09-16 Thread Chris Long
> I'm going to keep lobbing them at you, until it all works :) Perfect, keep them coming. :) Appears to be something related specifically to MySQL. Have it fixed by Monday. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: RowLevelPermissions and OneToOne problem

2006-09-17 Thread Chris Long
Hey, Latest release should fix both. The user_id problem is related to the generic relations used in the POP branch, I've written up a ticket #2749 about it, but it has been fixed in my branch. Let me know how it goes. Chris --~--~-~--~~~---~--~~ You received t

Re: RowLevelPermissions and show_all_rows

2006-09-18 Thread Chris Long
The problem appears to be related to the same stuff we've been dealing w/ earlier. This line(django.contrib.admin.main.ChangeList line 695): qs = self.manager.filter(id__in=RowLevelPermission.objects.get_model_list(self.user, self.model, self.opts.get_ch

Re: RowLevelPermissions and show_all_rows

2006-09-19 Thread Chris Long
I'll take a look at it and (if all goes well) fix it. Cheers, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.co

Re: RowLevelPermissions and show_all_rows

2006-09-23 Thread Chris Long
Fixed in latest revision. Chris schotm wrote: > Hi i just started with django yesterday and was testing RLP today. > > In the order it says this in the documentation: > The order of checking permissions will work in the following order: > User Row Level Permission -> Group Row Level Permission -

Re: "Edit Row Level Permissions" showing up everywhere in Admin

2006-09-25 Thread Chris Long
Fixed, though not exactly sure how that error was introduced. The file where the bug was, I haven't touched in a while. Strange and random...but it is fixed now. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Merged Per Object Permissions (RLP) Branch

2007-06-17 Thread Chris Long
Hey Everyone, I know I've gone missing the past few months, been busy finishing off my last semester at school and recovering from some surgeries. I hope to start working on the RLP branch once again, I've merged the RLP branch to the latest trunk. I've gone through and fixed up some stuff (gene