Ignore:
Timestamp:
22/05/07 13:05:26 (15 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.

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

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): 
  • TI05-delivery/ows_framework/trunk/ows_common/ows_common/iso19115_subset.py

    r2477 r2501  
    1818 
    1919    """ 
    20     __slots__ = ['lang'] 
    2120     
    2221    def __init__(self, value, lang=None): 
     
    3534 
    3635    """ 
    37     __slots__ = ['codeSpace'] 
    3836 
    3937    def __init__(self, code, codeSpace=None): 
     
    7371 
    7472    """ 
    75     def __init__(self, href, role=None, show=None, title=None, actuate=None 
     73    def __init__(self, href, role=None, show=None, title=None, actuate=None, 
    7674                 arcrole=None): 
    7775        self.href = href 
Note: See TracChangeset for help on using the changeset viewer.