Ignore:
Timestamp:
24/11/09 12:47:11 (10 years ago)
Author:
pnorton
Message:

Made some minor alterations to the controllers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/coastwms.py

    r6020 r6041  
    66import genshi.template  
    77from cows.pylons import ows_controller 
     8from pylons import config 
    89from cows.service.imps.data_reader_geoplot_backend.rendering_option import RenderingOption 
    910from cows.service.imps.data_reader_geoplot_backend.slab_options_parser import SlabOptionsParser 
     
    137138#                dataURLs=[] 
    138139             
    139             onlineRes = OnlineResource(url_for(qualified=True, action='index') +\ 
     140            onlineRes = OnlineResource(self._getIndexActionURL() +\ 
    140141                                    "?request=GetDisplayOptions&layers=%s" % layerName) 
    141142            metadataURL = MetadataURL(metadataType='display_options', format='application/json', onlineResource=onlineRes) 
     
    435436      
    436437        return img 
     438 
     439    def _getIndexActionURL(self): 
     440        """ 
     441        Uses the pylons config to build a url for the index action of this contoller. 
     442        """ 
     443                 
     444        indexURL = url_for(qualified=True, action='index') 
     445        return indexURL     
Note: See TracChangeset for help on using the changeset viewer.