Changeset 5915


Ignore:
Timestamp:
30/10/09 15:13:09 (10 years ago)
Author:
domlowe
Message:

modifying wxs capabilities to optionally read service identification title from layermapper class

Location:
cows/trunk/cows
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/wcs_controller.py

    r5820 r5915  
    121121 
    122122            c.capabilities.contents.datasetSummaries.append(ds) 
    123  
     123        #LayerMapper may optionally implement a datasetName attribute which  
     124        #will be tried if serviceIdentification/title is not supplied in capabilities config 
     125        if c.capabilities.serviceIdentification.titles[0] is None: 
     126            try: 
     127                c.capabilities.serviceIdentification.titles=[self.layerMapper.datasetName] 
     128            except AttributeError: 
     129                pass 
    124130             
    125131    def _getLayerParam(self, paramName='coverage'): 
  • cows/trunk/cows/pylons/wfs_controller.py

    r5399 r5915  
    122122 
    123123            c.capabilities.contents.datasetSummaries.append(ds) 
     124         
     125        #LayerMapper may optionally implement a datasetName attribute which  
     126        #will be tried if serviceIdentification/title is not supplied in capabilities config 
     127        if c.capabilities.serviceIdentification.titles[0] is None: 
     128            try: 
     129                c.capabilities.serviceIdentification.titles=[self.layerMapper.datasetName] 
     130            except AttributeError: 
     131                pass 
    124132 
    125133    def _getSchema(self, typename): 
  • cows/trunk/cows/pylons/wms_controller.py

    r5768 r5915  
    183183 
    184184            c.capabilities.contents.datasetSummaries.append(ds) 
    185  
     185         
     186        #LayerMapper may optionally implement a datasetName attribute which  
     187        #will be tried if serviceIdentification/title is not supplied in capabilities config 
     188        if c.capabilities.serviceIdentification.titles[0] is None: 
     189                try: 
     190                    c.capabilities.serviceIdentification.titles=[self.layerMapper.datasetName] 
     191                except AttributeError: 
     192                    pass 
     193                 
     194                 
    186195        # Add this operation here after we have found all formats 
    187196        ows_controller.addOperation('GetFeatureInfo', 
  • cows/trunk/cows/service/imps/data_reader_geoplot_backend/data_reader_geoplot_layer_mapper.py

    r5755 r5915  
    3333        """ 
    3434        fileoruri=kwargs['fileoruri'] 
    35                  
     35        self.datasetName = fileoruri 
    3636        if fileoruri in self.layermapcache.keys(): 
    3737             
Note: See TracChangeset for help on using the changeset viewer.