Changeset 2471 for TI05-delivery


Ignore:
Timestamp:
15/05/07 13:00:42 (13 years ago)
Author:
spascoe
Message:

Most of OWS common implemented except for Service Profider package.

Location:
TI05-delivery/ows_framework/trunk/ows
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows/README

    r2469 r2471  
    2020Note: ows.data_identification.Identification.metadata is pleural :-). 
    2121 
     22In some cases it is more natural to use dictionaries than sequences of 
     23objects with name attributes.  In this case an attribute will be appended 
     24with the word "Dict", e.g. ows.operations_metadata.OperationMetadata.operationDict. 
  • TI05-delivery/ows_framework/trunk/ows/is19115_subset.py

    r2469 r2471  
    2424        self.lang = lang 
    2525 
    26 class Code(object): 
     26class Code(str): 
    2727    """ 
     28    If you wish to attach a codeSpace to a Code element use this class, 
     29    otherwise it can be substituted with a string 
     30 
    2831    @ivar code 
    2932    @type code: str 
     
    3235 
    3336    """ 
    34     __slots__ = ['code', 'codeSpace'] 
     37    __slots__ = ['codeSpace'] 
    3538 
    3639    def __init__(self, code, codeSpace=None): 
    37         self.code = code 
     40        super(Code, self).__init__(code) 
    3841        self.codeSpace = codeSpace 
    3942 
     
    5255        self.type = type 
    5356         
     57class Xlink(object): 
     58    """ 
     59    This class exposes all xlink:simpleLink attributes. 
     60 
     61    @ivar href: A URL 
     62    @type href: str 
     63    @ivar role 
     64    @type role: None or str 
     65    @ivar show 
     66    @type show: None or str 
     67    @ivar title 
     68    @type title: None or str 
     69    @ivar actuate 
     70    @type actuate: None or str 
     71    @ivar arcrole 
     72    @type arcrole: None or str 
     73 
     74    """ 
     75    def __init__(self, href, role=None, show=None, title=None, actuate=None 
     76                 arcrole=None): 
     77        self.href = href 
     78        self.role = role 
     79        self.show = show 
     80        self.title = title 
     81        self.actuate = actuate 
     82        self.arcrole = arcrole 
     83 
     84class OnlineResource(Xlink): 
     85    pass 
Note: See TracChangeset for help on using the changeset viewer.