Changeset 8044
- Timestamp:
- 07/21/08 22:05:40 (1 month ago)
- Files:
-
- django/trunk/django/contrib/auth/models.py (modified) (1 diff)
- django/trunk/tests/regressiontests/auth_backends/tests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/auth/models.py
r7967 r8044 359 359 return False 360 360 361 def has_perms(self, perm_list): 362 return False 363 361 364 def has_module_perms(self, module): 362 365 return False django/trunk/tests/regressiontests/auth_backends/tests.py
r7294 r8044 5 5 6 6 __test__ = {'API_TESTS': """ 7 >>> from django.contrib.auth.models import User, Group, Permission 7 >>> from django.contrib.auth.models import User, Group, Permission, AnonymousUser 8 8 >>> from django.contrib.contenttypes.models import ContentType 9 9 … … 70 70 >>> user.has_perms(['auth.test3', 'auth.test_group']) 71 71 True 72 73 >>> user = AnonymousUser() 74 >>> user.has_perm('test') 75 False 76 >>> user.has_perms(['auth.test2', 'auth.test3']) 77 False 72 78 """}
