No, really: PermWrapper is not iterable. Fixes #8182.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2008-08-09 15:38:44 +00:00
parent be5350f2d5
commit 69d8ff31ac
1 changed files with 4 additions and 0 deletions

View File

@ -79,3 +79,7 @@ class PermWrapper(object):
def __getitem__(self, module_name):
return PermLookupDict(self.user, module_name)
def __iter__(self):
# I am large, I contain multitudes.
raise TypeError("PermWrapper is not iterable.")