Changeset 2561 for TI05-delivery


Ignore:
Timestamp:
08/06/07 09:38:03 (12 years ago)
Author:
spascoe
Message:

Moved decorators into ows_server.

Location:
TI05-delivery/ows_framework/trunk
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wms.py

    r2549 r2561  
    1010from ows_server.lib.base import * 
    1111from ows_server.controllers.csml_api import get_csml_doc 
     12from ows_server.lib.decorators import * 
     13 
    1214from elementtree import ElementTree as ET 
    1315 
    1416from ows_common import exceptions as OWS_E 
    15 from ows_common.decorators import * 
    1617from ows_common.contents import * 
    1718 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/decorators.py

    r2502 r2561  
    1010""" 
    1111 
    12 from ows_common.domain import Domain, PossibleValues 
    13  
    14 def make_domain(value=None, possibleValues=None, 
    15               meaning=None, dataType=None, valuesUnit=None): 
    16     if possibleValues is None: 
    17         pv = PossibleValues.anyValue() 
    18     elif isinstance(possibleValues, PossibleValues): 
    19         pv = possibleValues 
    20     else: 
    21         pv = PossibleValues.allowedValues(possibleValues) 
    22  
    23     return Domain(defaultValue=value, possibleValues=pv, 
    24                   meaning=meaning, dataType=dataType, valuesUnit=valuesUnit) 
     12from ows_common.util import make_domain 
    2513 
    2614def operation(method): 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ows/wms_capabilities.kid

    r2551 r2561  
    6969    <Title py:content="ds.titles[0]"/> 
    7070    <Abstract py:if="len(ds.abstracts)>0" py:content="ds.abstracts[0]"/> 
    71     <!-- TODO CRS from metadata --> 
     71    <!-- TODO CRS --> 
    7272    <BoundingBox py:for="bb in ds.boundingBoxes" 
    7373                 py:attrs="bbox_attrs(bb)"/> 
Note: See TracChangeset for help on using the changeset viewer.