Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed deprecated copy of PermWrapper and PermLookupDict from django…

….core.context_processors.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 95d9662f3984199062f237386a45b1a2c170f01d 1 parent bfbe4df
Aymeric Augustin authored March 31, 2012

Showing 1 changed file with 0 additions and 29 deletions. Show diff stats Hide diff stats

  1. 29  django/core/context_processors.py
29  django/core/context_processors.py
@@ -69,32 +69,3 @@ def media(request):
69 69
 
70 70
 def request(request):
71 71
     return {'request': request}
72  
-
73  
-# PermWrapper and PermLookupDict proxy the permissions system into objects that
74  
-# the template system can understand. They once lived here -- they have
75  
-# been moved to django.contrib.auth.context_processors.
76  
-
77  
-from django.contrib.auth.context_processors import PermLookupDict as RealPermLookupDict
78  
-from django.contrib.auth.context_processors import PermWrapper as RealPermWrapper
79  
-
80  
-class PermLookupDict(RealPermLookupDict):
81  
-    def __init__(self, *args, **kwargs):
82  
-        import warnings
83  
-        warnings.warn(
84  
-            "`django.core.context_processors.PermLookupDict` is " \
85  
-            "deprecated; use `django.contrib.auth.context_processors.PermLookupDict` " \
86  
-            "instead.",
87  
-            DeprecationWarning
88  
-        )
89  
-        super(PermLookupDict, self).__init__(*args, **kwargs)
90  
-
91  
-class PermWrapper(RealPermWrapper):
92  
-    def __init__(self, *args, **kwargs):
93  
-        import warnings
94  
-        warnings.warn(
95  
-            "`django.core.context_processors.PermWrapper` is " \
96  
-            "deprecated; use `django.contrib.auth.context_processors.PermWrapper` " \
97  
-            "instead.",
98  
-            DeprecationWarning
99  
-        )
100  
-        super(PermWrapper, self).__init__(*args, **kwargs)

0 notes on commit 95d9662

Please sign in to comment.
Something went wrong with that request. Please try again.