Changeset 3762

Show
Ignore:
Timestamp:
11/25/07 17:25:21 (8 months ago)
Author:
faide
Message:

fixes for ticket #1598. Dicts are not managed because CP decoding filter does not manage them either.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/turbogears/visit/api.py

    r3443 r3762  
    55from datetime import timedelta, datetime 
    66import time 
     7import types 
    78 
    89import cherrypy 
     
    163164            cherrypy.request.object_path = e.path 
    164165 
     166        for k,v in cherrypy.request.params.iteritems(): 
     167            if isinstance(v, types.DictType): 
     168                # we don't do anything with this... 
     169                # anyway the decode filter of CP will not work 
     170                # with dicts 
     171                cherrypy.request.params[k] = v 
     172 
     173            else: 
     174                cherrypy.request.params[k] = v.encode('utf-8') 
     175 
    165176    def _generate_key(self): 
    166177        '''