Changeset 7498 for cowsclient


Ignore:
Timestamp:
21/09/10 22:22:00 (9 years ago)
Author:
astephen
Message:

Changed use of request.params object because MultiDict? is read-only.
Need to take a copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/branches/migrate-py26-pylons10/cowsclient/controllers/wmsviz.py

    r7348 r7498  
    201201        session.save() 
    202202         
    203  
    204  
    205      
    206203    def get_figure(self): 
    207204        log.debug("running wmsvis.get_figure") 
    208205         
    209         params = request.params 
     206        # Use .copy() on params to get a *writeable* MultiDict instance 
     207        params = request.params.copy() 
    210208         
    211209        log.debug("params = %s" % (params,)) 
    212210         
    213211        format = params.pop('figFormat', 'image/png') 
    214          
    215212        finalImage = build_figure(params) 
    216213         
     
    222219        response.headers['Content-Type'] = format 
    223220        response.write(buffer.getvalue())   
    224  
    225  
    226  
Note: See TracChangeset for help on using the changeset viewer.