Changeset 3575 for TI05-delivery/ows_framework
- Timestamp:
- 10/03/08 16:59:09 (13 years ago)
- 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 61 61 <!--!NOTE: this is an ad-hoc implementation not using the ows_common.model classes 62 62 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)}" --> 63 71 <Style> 64 72 <Name>default</Name> … … 71 79 </Style> 72 80 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)}" -->81 81 82 82 </Layer> -
TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/pylons/wms_controller.py
r3574 r3575 78 78 ows_controller.addOperation('GetContext') 79 79 ows_controller.addOperation('GetLegend', 80 formats= 'image/png')80 formats=['image/png']) 81 81 ows_controller.addOperation('GetInfo') 82 82 log.debug('Loading capabilities contents') … … 107 107 # Stuff that should go in the capabilities tree eventually 108 108 ds.legendSize = layer.legendSize 109 ds.legendFormats = 'image/png'109 ds.legendFormats = ['image/png'] 110 110 111 111 c.capabilities.contents.datasetSummaries.append(ds)
Note: See TracChangeset
for help on using the changeset viewer.