Changeset 5995


Ignore:
Timestamp:
11/11/09 14:47:39 (10 years ago)
Author:
pnorton
Message:

Fixed a problem with cached layer maps having the wrong dataset name.

I think I've fixed it for now but the problem of using the .datasetName property on the layer mapper object should be look at more carefully.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/data_reader_geoplot_backend/data_reader_geoplot_layer_mapper.py

    r5945 r5995  
    3838            log.debug("cached layermap used for fileoruri = %s" % (fileoruri,)) 
    3939             
     40            self.datasetName = self.layermapcache[fileoruri]['dsName']  
    4041            #we've accessed this layer map before, get it from the cache dictionary 
    41             return self.layermapcache[fileoruri] 
     42            return self.layermapcache[fileoruri]['layermap'] 
    4243         
    4344 
     
    5051        except AttributeError: 
    5152            self.datasetName = 'CSML/Geoplot WMS Service' 
     53             
     54        log.debug("fileoruri = %s, self.datasetName = %s" % (fileoruri, self.datasetName)); 
    5255         
    5356        for name, title, abstract, dimensions, units, crss, bb in \ 
     
    5861             
    5962        if len(layermap) > 0: 
    60             self.layermapcache[fileoruri]=layermap 
     63            self.layermapcache[fileoruri]={'layermap':layermap, 
     64                                           'dsName':self.datasetName} 
    6165            return layermap 
    6266        else: 
Note: See TracChangeset for help on using the changeset viewer.