Re: RowLevelPermissions and OneToOne problem

2006-09-17 Thread Jay Parlar
On 9/17/06, Chris Long <[EMAIL PROTECTED]> wrote: > > 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. Worked perf

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 OneToOne problem

2006-09-16 Thread Jay Parlar
Great. Also, don't forget about the patch from a few messages ago, namely: --- django/contrib/admin/row_level_perm_manipulator.py (revision 3753) +++ django/contrib/admin/row_level_perm_manipulator.py (working copy) @@ -77,7 +77,8 @@ #Check that the new row level perms are unique

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-15 Thread Jay Parlar
The error seems to be related to this code in db/models/query.py: for related in cls._meta.get_all_related_many_to_many_objects(): for offset in range(0, len(pk_list), GET_ITERATOR_CHUNK_SIZE): cursor.execute("DELETE FROM %s WHERE %s IN (%s)" % \

Re: RowLevelPermissions and OneToOne problem

2006-09-15 Thread Jay Parlar
Oh, and interestingly, the row level permission I was trying to delete *does* in fact get deleted, despite my seeing this error. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To p

Re: RowLevelPermissions and OneToOne problem

2006-09-15 Thread Jay Parlar
I'm going to keep lobbing them at you, until it all works :) I'm still trying to delete a row level permission, and I'm getting: Traceback (most recent call last): File "/Users/jayparlar/Library/Python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(requ

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-12 Thread Jay Parlar
And another one. This time I'm trying to delete a row level permission. Not sure what the correct fix for this one is. Traceback (most recent call last): File "/Users/jayparlar/Library/Python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(request, *call

Re: RowLevelPermissions and OneToOne problem

2006-09-12 Thread Jay Parlar
Another problem along the same vein just popped up. I was trying to add a "change user profile" row level permission for a user, and I got this: Traceback (most recent call last): File "/Users/jayparlar/Library/Python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response

Re: RowLevelPermissions and OneToOne problem

2006-09-12 Thread Jay Parlar
On 9/12/06, Chris Long <[EMAIL PROTECTED]> wrote: > > 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

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 --~--~-~--~~~---~--~--

RowLevelPermissions and OneToOne problem

2006-09-11 Thread Jay Parlar
I decided to try out the RowLevelPermissions branch today, and apply it to some code I haven't put into production yet. My model is essentially this: class UserProfile(models.Model): home_address = models.TextField(blank=True,null=True) user = models.OneToOneField(User) class Admin: