summaryrefslogtreecommitdiff
path: root/django/contrib/auth/handlers/modpython.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-01-08 05:10:51 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-01-08 05:10:51 +0000
commit0c548516bc951cbbd3f153a8e5c7b6a2108962c0 (patch)
treea3850d45dbdff105d5d4922a4727d1108aa1bd4f /django/contrib/auth/handlers/modpython.py
parent491a152c11e61f5fbb693c44944d83f7fdae3e45 (diff)
Fixed #1185 -- Fixed Python 2.4 bug in Django authentication mod_python handler. Thanks, Brian Ray
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/auth/handlers/modpython.py')
-rw-r--r--django/contrib/auth/handlers/modpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/handlers/modpython.py b/django/contrib/auth/handlers/modpython.py
index a29051b4a3..d538c9ccc8 100644
--- a/django/contrib/auth/handlers/modpython.py
+++ b/django/contrib/auth/handlers/modpython.py
@@ -13,7 +13,7 @@ def authenhandler(req, **kwargs):
from django.models.auth import users
# check for PythonOptions
- _str_to_bool = lambda s: s.lower() in '1', 'true', 'on', 'yes'
+ _str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes')
options = req.get_options()
permission_name = options.get('DjangoPermissionName', None)