Django

Code

Ticket #2418 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

PermLookupDict using old method to get full permissions list, failing

Reported by: DarkElf109@ibendit.com Assigned to: adrian
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In django.core.contextProcessors, on line 55, PermLookupDict's __repr__ function attempts to return the given User object's permission list through the use of get_permission_list(). Since this is no longer implemented in User, it fails consistently. Instead, get_all_permissions() should be used.

Excerpt:
54:    def __repr__(self):
55:        return str(self.user.get_permission_list())

Proposed:
54:    def __repr__(self):
55:        return str(self.user.get_all_permissions())

Attachments

Change History

09/23/06 03:35:10 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [3798]) Fixed #2418 -- Fixed obsolete method call in PermLookupDict?.repr. Thanks, DarkElf?109@ibendit.com.


Add/Change #2418 (PermLookupDict using old method to get full permissions list, failing)




Change Properties
Action