Browse files

Fixed #1185 -- Fixed Python 2.4 bug in Django authentication mod_pyth…

…on handler. Thanks, Brian Ray

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 491a152 commit 0c548516bc951cbbd3f153a8e5c7b6a2108962c0 @adrianholovaty adrianholovaty committed Jan 8, 2006
Showing with 2 additions and 1 deletion.
  1. +1 −0 AUTHORS
  2. +1 −1 django/contrib/auth/handlers/modpython.py
View
1 AUTHORS
@@ -81,6 +81,7 @@ answer newbie questions, and generally made Django that much better:
phaedo <http://phaedo.cx/>
Luke Plant <http://lukeplant.me.uk/>
plisk
+ Brian Ray <http://brianray.chipy.org/>
Oliver Rutherfurd <http://rutherfurd.net/>
David Schein
sopel
View
2 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)

0 comments on commit 0c54851

Please sign in to comment.