Re: [Django] #9414: Documentation on has_perm and the permission_required decorator is confusing

2009-09-12 Thread Django
#9414: Documentation on has_perm and the permission_required decorator is
confusing
+---
  Reporter:  wallenfe   | Owner:  jacob
Status:  reopened   | Milestone:   
 Component:  Documentation  |   Version:  SVN  
Resolution: |  Keywords:   
 Stage:  Ready for checkin  | Has_patch:  1
Needs_docs:  0  |   Needs_tests:  0
Needs_better_patch:  0  |  
+---
Changes (by timo):

  * has_patch:  0 => 1
  * stage:  Accepted => Ready for checkin
  * version:  1.0 => SVN
  * milestone:  1.1 =>

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



Re: [Django] #9414: Documentation on has_perm and the permission_required decorator is confusing

2009-08-30 Thread Django
#9414: Documentation on has_perm and the permission_required decorator is
confusing
+---
  Reporter:  wallenfe   | Owner:  jacob
Status:  reopened   | Milestone:  1.1  
 Component:  Documentation  |   Version:  1.0  
Resolution: |  Keywords:   
 Stage:  Accepted   | Has_patch:  0
Needs_docs:  0  |   Needs_tests:  0
Needs_better_patch:  0  |  
+---
Changes (by anonymous):

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

Comment:

 The documentation is still wrong:
 
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.has_perm

 It says `"."` repeatedly (at
 least twice) in the documentation, when in fact it should be
 `"."`

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



Re: [Django] #9414: Documentation on has_perm and the permission_required decorator is confusing

2009-02-26 Thread Django
#9414: Documentation on has_perm and the permission_required decorator is
confusing
+---
  Reporter:  wallenfe   | Owner:  nobody
Status:  new| Milestone:  1.1   
 Component:  Documentation  |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by jacob):

  * needs_better_patch:  => 0
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * milestone:  => 1.1

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



[Django] #9414: Documentation on has_perm and the permission_required decorator is confusing

2008-10-21 Thread Django
#9414: Documentation on has_perm and the permission_required decorator is
confusing
---+
 Reporter:  wallenfe   |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Documentation  | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 The documentation on using has_perm and permission_required is confusing
 in that it does not define how the permission string that is passed to
 those functions is defined.

 The documentation should mention that the string is:
 ApplicationName.PermissionName.

 Since Permissions are defined on models, my first inclination was to try:
 ModelName.PermissionName


 This is the documentation page I am referring to:
 http://docs.djangoproject.com/en/dev/topics/auth/#topics-auth

 And an example of the permission string being used, but without an
 explanation.
 "
 def my_view(request):
 if not (request.user.is_authenticated() and
 request.user.has_perm('polls.can_vote')):
 "

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