Changeset 1036

Show
Ignore:
Timestamp:
01/24/08 09:47:37
Author:
domlowe
Message:

changed serviceprovider and serviceidentification to provider and identification.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/branches/wcstemp/owslib/coverage/wcs100.py

    r1035 r1036  
    4848        #serviceIdentification metadata 
    4949        subelem=self._capabilities.find(ns('Service/')) 
    50         self.serviceidentification=ServiceIdenfication(subelem)                                
     50        self.identification=ServiceIdenfication(subelem)                                
    5151                    
    5252        #serviceProvider metadata 
    5353        subelem=self._capabilities.find(ns('Service/')+ns('responsibleParty')) 
    54         self.serviceprovider=ServiceProvider(subelem)    
     54        self.provider=ServiceProvider(subelem)    
    5555         
    5656        #serviceOperations metadata 
     
    196196    def __init__(self,elem): 
    197197        try: 
    198             self.provider=elem.find(ns('organisationName')).text 
     198            self.name=elem.find(ns('organisationName')).text 
    199199        except AttributeError:  
    200             self.provider='' 
     200            self.name='' 
    201201        self.url ="URL for provider's web site (string)." #TODO 
    202202        self.contact = "How to contact the service provider (string)."  #TO DECIDE - simple attributes? 
  • OWSLib/branches/wcstemp/owslib/coverage/wcs110.py

    r1034 r1036  
    5252        #serviceIdentification metadata 
    5353        elem=self._capabilities.find('{http://www.opengis.net/wcs/1.1/ows}ServiceIdentification') 
    54         self.serviceidentification=ServiceIdentification(elem) 
     54        self.identification=ServiceIdentification(elem) 
    5555         
    5656        #serviceProvider 
    5757        elem=self._capabilities.find('{http://www.opengis.net/ows}ServiceProvider') 
    58         self.serviceprovider=ServiceProvider(elem) 
     58        self.provider=ServiceProvider(elem) 
    5959                 
    6060        #serviceOperations 
     
    232232    implements IServiceProviderMetadata """ 
    233233    def __init__(self,elem): 
    234         self.provider=elem.find('{http://www.opengis.net/ows}ProviderName').text 
    235         self.contact=ServiceContact(elem.find('{http://www.opengis.net/ows}ServiceContact')) 
    236         self.contact='How to contact the service provider (string).' 
     234        self.name=elem.find('{http://www.opengis.net/ows}ProviderName').text 
     235        #self.contact=ServiceContact(elem.find('{http://www.opengis.net/ows}ServiceContact')) 
     236        self.contact = "How to contact the service provider (string)."  #TO DECIDE - simple attributes? 
    237237        self.url="URL for provider's web site (string)." 
    238238 
  • OWSLib/branches/wcstemp/tests/wcs_newiface.txt

    r1027 r1036  
    1212    >>> wcs.version 
    1313    '1.0.0' 
    14     >>> wcs.serviceidentification.service 
     14    >>> wcs.identification.service 
    1515    'tba' 
    16     >>> wcs.serviceidentification.version 
     16    >>> wcs.identification.version 
    1717    '1.0.0' 
    18     >>> wcs.serviceidentification.title 
     18    >>> wcs.identification.title 
    1919    'tba' 
    20     >>> wcs.serviceidentification.abstract 
     20    >>> wcs.identification.abstract 
    2121    '\n      Web Map Server maintained by BADC\n      Contact: webmaster@badc.nerc.ac.uk ' 
    22     >>> wcs.serviceidentification.keywords 
     22    >>> wcs.identification.keywords 
    2323    ['atmospheric', 'climate'] 
    24     >>> wcs.serviceidentification.fees 
     24    >>> wcs.identification.fees 
    2525    'NONE' 
    26     >>> wcs.serviceidentification.accessConstraints 
     26    >>> wcs.identification.accessConstraints 
    2727    'NONE' 
    28     >>> wcs.serviceprovider.provider 
     28    >>> wcs.provider.name 
    2929    'British Atmospheric Data Centre' 
    30     >>> wcs.serviceprovider.url 
     30    >>> wcs.provider.url 
    3131    "URL for provider's web site (string)." 
    32     >>> wcs.serviceprovider.contact 
     32    >>> wcs.provider.contact 
    3333    'How to contact the service provider (string).' 
    3434    >>> type(wcs.items()) 
     
    3939    >>> cvg.keywords 
    4040    ['NONE'] 
    41     >>> wcs.serviceidentification.accessConstraints 
     41    >>> wcs.identification.accessConstraints 
    4242    'NONE' 
    43     >>> wcs.serviceidentification.fees 
     43    >>> wcs.identification.fees 
    4444    'NONE' 
    4545    >>> cvg.boundingBoxWGS84 
     
    6464    >>> wcs.version 
    6565    '1.1.0' 
    66     >>> wcs.serviceidentification.service 
     66    >>> wcs.identification.service 
    6767    'WCS' 
    68     >>> wcs.serviceidentification.version 
     68    >>> wcs.identification.version 
    6969    '1.1.0' 
    70     >>> wcs.serviceidentification.title 
     70    >>> wcs.identification.title 
    7171    'BADC OGC WCS Server' 
    72     >>> wcs.serviceidentification.abstract 
     72    >>> wcs.identification.abstract 
    7373    '\n      Web Map Server maintained by BADC\n      Contact: webmaster@badc.nerc.ac.uk ' 
    74     >>> wcs.serviceidentification.keywords 
     74    >>> wcs.identification.keywords 
    7575    ['atmospheric', 'climate'] 
    76     >>> wcs.serviceidentification.fees 
     76    >>> wcs.identification.fees 
    7777    'NONE' 
    78     >>> wcs.serviceidentification.accessConstraints 
     78    >>> wcs.identification.accessConstraints 
    7979    'NONE' 
    80     >>> wcs.serviceprovider.provider 
     80    >>> wcs.provider.name 
    8181    'British Atmospheric Data Centre' 
    82     >>> wcs.serviceprovider.url 
     82    >>> wcs.provider.url 
    8383    "URL for provider's web site (string)." 
    84     >>> wcs.serviceprovider.contact 
     84    >>> wcs.provider.contact 
    8585    'How to contact the service provider (string).' 
    8686    >>> type(wcs.items()) 
     
    9191    >>> cvg.keywords 
    9292    ['NONE', 'NONE'] 
    93     >>> wcs.serviceidentification.accessConstraints 
     93    >>> wcs.identification.accessConstraints 
    9494    'NONE' 
    95     >>> wcs.serviceidentification.fees 
     95    >>> wcs.identification.fees 
    9696    'NONE' 
    9797    >>> cvg.boundingBoxWGS84