Ignore:
Timestamp:
22/05/07 13:05:26 (13 years ago)
Author:
spascoe
Message:

Many new ideas in this commit. It's still in a state of flux.
I'm exploring using decorators and class attributes with the prefix "_ows"
to declare properties that need to be in the OWS capabilities document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_common/ows_common/domain.py

    r2475 r2501  
    3030 
    3131    """ 
    32     def __init__(self, possibleValues, defaultValue=None, metadata=[], 
    33                  meaning=None, dataType=None, valuesUnit): 
     32    def __init__(self,  defaultValue=None, possibleValues=None, metadata=[], 
     33                 meaning=None, dataType=None, valuesUnit=None): 
     34        if possibleValues is None: 
     35            possibleValues = PossibleValues.anyValue() 
    3436        self.possibleValues = possibleValues 
    3537        self.defaultValue = defaultValue 
     
    8183        k.type = klass.ALLOWED_VALUES 
    8284        k.allowedValues = valueOrRanges 
     85        return k 
    8386 
    8487    @classmethod 
     
    126129 
    127130    """ 
    128     __slots__ = ['reference'] 
    129131 
    130132    def __init__(self, name, reference=None): 
Note: See TracChangeset for help on using the changeset viewer.