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/iso19115_subset.py

    r2501 r2519  
    1818 
    1919    """ 
     20 
     21    def __new__(cls, value='', lang=None): 
     22        return str.__new__(cls, value) 
    2023     
    21     def __init__(self, value, lang=None): 
    22         super(LanguageString, self).__init__(value) 
     24    def __init__(self, value='', lang=None): 
    2325        self.lang = lang 
    2426 
     
    3537    """ 
    3638 
    37     def __init__(self, code, codeSpace=None): 
    38         super(Code, self).__init__(code) 
     39    def __new__(cls, code='', codeSpace=None): 
     40        return str.__new__(cls, code) 
     41 
     42    def __init__(self, code='', codeSpace=None): 
    3943        self.codeSpace = codeSpace 
    4044 
     
    5054    __slots__ = ['type'] 
    5155 
    52     def __init__(self, type=None): 
     56    def __new__(cls, value=[], type=None): 
     57        return list.__new__(cls, value) 
     58 
     59    def __init__(self, value=[], type=None): 
    5360        self.type = type 
    5461         
     
    146153    @type address: None or Address 
    147154    @ivar phone 
     155    @type phone: None or Telephone 
    148156    @ivar onlineResource 
    149157    @type onlineResource: None or OnlineResource 
Note: See TracChangeset for help on using the changeset viewer.