]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Routes components are Unicode strings, so fix the URL universalizer
authorEvan Broder <broder@mit.edu>
Sun, 13 Jul 2008 18:42:53 +0000 (18:42 +0000)
committerEvan Broder <broder@mit.edu>
Sun, 13 Jul 2008 18:42:53 +0000 (18:42 +0000)
bluechips/lib/base.py

index 260943f78f2d1dc75aab627c16634d59d6f7393b..f561cec419e048606ab4d0c4c3432d77d1356162 100644 (file)
@@ -27,7 +27,7 @@ class BaseController(WSGIController):
                 environ['PATH_INFO'] = environ['PATH_INFO'][:-5]
                 raise HTTPMovedPermanently(construct_url(environ))
             if not environ['PATH_INFO'].endswith('/') and \
                 environ['PATH_INFO'] = environ['PATH_INFO'][:-5]
                 raise HTTPMovedPermanently(construct_url(environ))
             if not environ['PATH_INFO'].endswith('/') and \
-                    environ['pylons.routes_dict']['action'] is 'index':
+                    environ['pylons.routes_dict']['action'] == 'index':
                 environ['PATH_INFO'] += '/'
                 raise HTTPMovedPermanently(construct_url(environ))
         try:
                 environ['PATH_INFO'] += '/'
                 raise HTTPMovedPermanently(construct_url(environ))
         try: