Ignore:
Timestamp:
29/05/07 14:17:30 (13 years ago)
Author:
spascoe
Message:

Added code to parse service metadata XML into ows_common objects.
Some corrections to ows_common classes.

File:
1 edited

Legend:

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

    r2478 r2519  
    1616    @ivar serviceType 
    1717    @type serviceType: ows.iso19115_subset.Code 
    18     @ivar serviceTypeVersion: The service version 
    19     @type serviceTypeVersion: str 
    20     @ivar profile 
    21     @type profile: None or str 
     18    @ivar serviceTypeVersions: The supported service versions 
     19    @type serviceTypeVersions: iterable of str 
     20    @ivar profiles 
     21    @type profiles: iterable of str 
    2222    @ivar fees 
    2323    @type fees: None or str 
     
    2626 
    2727    """ 
    28     def __init__(self, serviceType, serviceTypeVersion, 
    29                  profile=None, fees=None, accessConstraints=None): 
     28    def __init__(self, serviceType, serviceTypeVersions=[], 
     29                 profiles=[], fees=None, accessConstraints=None, **kwargs): 
    3030        """ 
    3131        All parameters set default attributes of the instance. 
    3232 
    3333        """ 
    34         super(self.__class__).__init__() 
     34        super(self.__class__, self).__init__(**kwargs) 
    3535 
    3636        self.serviceType = serviceType 
    37         self.serviceTypeVersion = serviceTypeVersion 
    38         self.profile = profile 
     37        self.serviceTypeVersions = serviceTypeVersions 
     38        self.profiles = profiles 
    3939        self.fees = fees 
    4040        self.accessConstraints = accessConstraints 
Note: See TracChangeset for help on using the changeset viewer.