Author: aaugustin
Date: 2012-03-31 05:57:06 -0700 (Sat, 31 Mar 2012)
New Revision: 17844
Modified:
django/trunk/django/core/context_processors.py
Log:
Removed deprecated copy of PermWrapper and PermLookupDict from
django.core.context_processors.
Modified: django/trunk/django/core/context_processors.py
===================================================================
--- django/trunk/django/core/context_processors.py 2012-03-31 12:54:40 UTC
(rev 17843)
+++ django/trunk/django/core/context_processors.py 2012-03-31 12:57:06 UTC
(rev 17844)
@@ -69,32 +69,3 @@
def request(request):
return {'request': request}
-
-# PermWrapper and PermLookupDict proxy the permissions system into objects that
-# the template system can understand. They once lived here -- they have
-# been moved to django.contrib.auth.context_processors.
-
-from django.contrib.auth.context_processors import PermLookupDict as
RealPermLookupDict
-from django.contrib.auth.context_processors import PermWrapper as
RealPermWrapper
-
-class PermLookupDict(RealPermLookupDict):
- def __init__(self, *args, **kwargs):
- import warnings
- warnings.warn(
- "`django.core.context_processors.PermLookupDict` is " \
- "deprecated; use
`django.contrib.auth.context_processors.PermLookupDict` " \
- "instead.",
- DeprecationWarning
- )
- super(PermLookupDict, self).__init__(*args, **kwargs)
-
-class PermWrapper(RealPermWrapper):
- def __init__(self, *args, **kwargs):
- import warnings
- warnings.warn(
- "`django.core.context_processors.PermWrapper` is " \
- "deprecated; use
`django.contrib.auth.context_processors.PermWrapper` " \
- "instead.",
- DeprecationWarning
- )
- super(PermWrapper, self).__init__(*args, **kwargs)
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
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.