Re: [Django] #20834: Document how user permission caching works

2014-01-22 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  closed
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:  fixed
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by Tim Graham ):

 In [changeset:"8eca53f0bef783e5c11877fe18a6651543605af1"]:
 {{{
 #!CommitTicketReference repository=""
 revision="8eca53f0bef783e5c11877fe18a6651543605af1"
 [1.6.x] Fixed #20834 -- Described how caching of user permissions works.

 Thanks Giggaflop and Jennifer Casavantes.

 Backport of 5f9790072d from master
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.b5a2f120043d29c96caedf0e99c66ae3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2014-01-22 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  closed
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:  fixed
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5f9790072d52443aff9a0e04f1552f1e29489521"]:
 {{{
 #!CommitTicketReference repository=""
 revision="5f9790072d52443aff9a0e04f1552f1e29489521"
 Fixed #20834 -- Described how caching of user permissions works.

 Thanks Giggaflop and Jennifer Casavantes.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.ce4f421996ed9c44e77960b26e301824%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2014-01-17 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  assigned
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timo):

 * needs_better_patch:  1 => 0


Comment:

 Here's a [https://github.com/django/django/pull/2179 PR] for review.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.41098e56273e8da42122e8b5d52873ca%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-10-17 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  assigned
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  1
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timo):

 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1


Comment:

 I left some comments for improvement on the pull request.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.fd6a081ea3a848613ecd88b3d04bd9de%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-10-15 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  assigned
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by Jennifer):

 I have made pull request for review
 https://github.com/django/django/pull/1754

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.518bd80866ca4d1774e08b196b5775a5%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-10-15 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  Jennifer
 Type:  New feature   |   Status:  assigned
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Jennifer):

 * owner:  nobody => Jennifer
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.5cd75ce7c4264f096102741fd59e9129%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-10-15 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by Jennifer):

 I notice that the documentation referred to in the original report   is
 for django 1.3 here is the link for the latest documentation version:
 https://docs.djangoproject.com/en/dev/ref/contrib/auth/#methods

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.93920bedbd4cec4cf87b802cac17f828%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-09-28 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by EvilDMP):

 I've marked this ticket as especially suitable for first-time committers
 or people following the [http://dont-be-afraid-to-commit.readthedocs.org/
 Don't be afraid to commit] tutorial. If you're tackling this ticket,
 please don't hesitate to ask me for guidance if you'd like any, either
 here or on the Django IRC channels, where I can be found as ''EvilDMP''.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.65e1ed0bfc1d6b2626898ff04aed4719%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-09-22 Thread Django
#20834: Document how user permission caching works
--+
 Reporter:  Giggaflop |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Documentation |  Version:
 Severity:  Normal|   Resolution:
 Keywords:  afraid-to-commit  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by EvilDMP):

 * keywords:   => afraid-to-commit
 * cc: EvilDMP (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.1dc154d86a99bce08f9186816af71071%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #20834: Document how user permission caching works

2013-08-01 Thread Django
#20834: Document how user permission caching works
---+
 Reporter:  Giggaflop  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Giggaflop):

 I would do something along the lines of.

 It may be required that the User object is reobtained if dynamically
 adding permissions. This is due to them being cached by Django.

 {{{
 def user_gains_perms(request, user_id):
 user = get_object_or_404(pk=user_id)
 permission = Permission.objects.get(codename="all_the_things")
 user.user_permissions.add(permission)

 # Note the user object has not gained the permission
 user.has_perms('all_the_things') # False

 # Request new instance of User
 user = get_object_or_404(pk=user_id)

 # Now note how the permissions have been updated
 user.has_perms('all_the_things') # True

 return HttpResponseRedirect(reverse('index'))
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.9689ef2a78146e8f8826c9dd3eb495ed%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20834: Document how user permission caching works (was: User objects Cache permissions data)

2013-07-31 Thread Django
#20834: Document how user permission caching works
---+
 Reporter:  Giggaflop  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by timo):

 * stage:  Unreviewed => Accepted


Comment:

 Yes, this seems like a good thing to mention. Do you think you could write
 up a patch or simply some text about what you would say?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.3216843743259a12cc3a88c5d42543bd%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.