Changeset 3575 for TI05-delivery


Ignore:
Timestamp:
10/03/08 16:59:09 (11 years ago)
Author:
spascoe
Message:

Type errors

Location:
TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/templates/wms_capabilities_1_1_1.xml

    r3573 r3575  
    6161    <!--!NOTE: this is an ad-hoc implementation not using the ows_common.model classes 
    6262         TODO: fixme --> 
     63    <!-- TODO ScaleHint --> 
     64 
     65    <Dimension py:for="d_n, d in ds.dimensions.iteritems()" 
     66               name="${d_n}" units="${d.valuesUnit}" 
     67               unitSymbol="${d.unitSymbol}"/> 
     68    <Extent py:for="d_n, d in ds.dimensions.iteritems()" name="${d_n}" default="${d.defaultValue}"  
     69            py:content="','.join(d.possibleValues.allowedValues)"/> 
     70<!--! nearestValue="${int(d.nearestValue)}" --> 
    6371    <Style> 
    6472      <Name>default</Name> 
     
    7179    </Style> 
    7280 
    73     <!-- TODO ScaleHint --> 
    74  
    75     <Dimension py:for="d_n, d in ds.dimensions.iteritems()" 
    76                name="${d_n}" units="${d.valuesUnit}" 
    77                unitSymbol="${d.unitSymbol}"/> 
    78     <Extent py:for="d_n, d in ds.dimensions.iteritems()" name="${d_n}" default="${d.defaultValue}"  
    79             py:content="','.join(d.possibleValues.allowedValues)"/> 
    80 <!--! nearestValue="${int(d.nearestValue)}" --> 
    8181 
    8282  </Layer> 
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/wms_controller.py

    r3574 r3575  
    7878        ows_controller.addOperation('GetContext') 
    7979        ows_controller.addOperation('GetLegend', 
    80                                     formats='image/png') 
     80                                    formats=['image/png']) 
    8181        ows_controller.addOperation('GetInfo') 
    8282        log.debug('Loading capabilities contents') 
     
    107107            # Stuff that should go in the capabilities tree eventually 
    108108            ds.legendSize = layer.legendSize 
    109             ds.legendFormats = 'image/png' 
     109            ds.legendFormats = ['image/png'] 
    110110 
    111111            c.capabilities.contents.datasetSummaries.append(ds) 
Note: See TracChangeset for help on using the changeset viewer.