Changeset 3807
- Timestamp:
- 12/04/07 20:53:40 (8 months ago)
- Files:
-
- branches/1.0/CHANGELOG.txt (modified) (1 diff)
- branches/1.0/turbogears/identity/tests/test_identity.py (modified) (1 diff)
- branches/1.0/turbogears/visit/api.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/CHANGELOG.txt
r3798 r3807 1 1 TurboGears Changelog 2 2 ==================== 3 4 5 1.0.4: 6 ------ 7 8 Fixes 9 ~~~~~ 10 11 * Fixed VisitFilter when Identity is on and there are list parameters (#1622). 3 12 4 13 branches/1.0/turbogears/identity/tests/test_identity.py
r3771 r3807 448 448 assert 'identity_failed_answer' in firstline, firstline 449 449 450 def test_decode_filter2(self): 451 """Test that the decode filter doesn't break with list 452 variables and Identity""" 453 testutil.create_request('/in_admin_group?a=1&a=2') 454 firstline = cherrypy.response.body[0] 455 assert 'identity_failed_answer' in firstline, firstline 456 450 457 class TestTGUser(testutil.DBTest): 451 458 model = TG_User branches/1.0/turbogears/visit/api.py
r3792 r3807 181 181 res = dict() 182 182 for k, v in params.items(): 183 if type(v) is dict:183 if isinstance(v, dict): 184 184 res[k] = encode_utf8(v) 185 185 elif isinstance(v, list): 186 res[k] = [vv.encode('utf-8') for vv in v] 186 187 else: 187 188 res[k] = v.encode('utf-8')