Ignore:
Timestamp:
04/03/08 13:42:17 (12 years ago)
Author:
spascoe
Message:

Changed the way we associate a layerMapper with WMSController.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/wms_controller.py

    r3553 r3554  
    1717from ows_common.model.wms import WmsDatasetSummary, Dimension 
    1818from ows_common.model import PossibleValues, BoundingBox, Contents 
    19 from ows_common.pylons import ows_controller, model 
     19from ows_common.pylons import ows_controller 
    2020from ows_common.exceptions import * 
    2121from ows_common import bbox_util 
    2222 
    2323class WMSController(ows_controller.OWSController): 
     24    """ 
     25    Subclass this controller in a pylons application and set the layerMapper 
     26    class attribute to implement a WMS. 
     27 
     28    @cvar layerMapper: an ows_common.service.wms_iface.ILayerMapper object. 
     29 
     30    """ 
     31    layerMapper = None 
    2432     
    2533    _pilImageFormats = { 
     
    5058 
    5159        """ 
    52         self.layers = model.getLayerMapper().map(**kwargs) 
     60        self.layers = self.layerMapper.map(**kwargs) 
    5361 
    5462    #------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.