Changeset 4989 for ndgCommon


Ignore:
Timestamp:
18/02/09 10:48:11 (11 years ago)
Author:
cbyrom
Message:

Remove get method from ndgObject - this isn't used and confuses the
definition and use of the object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/models/ndgObject.py

    r4935 r4989  
    181181        if ss!='':ss='?'+ss[1:] 
    182182        return base+ss 
    183              
    184     def get(self,securityCredentials=None): 
    185         ''' Actually retrieve an ORIGINAL xml record corresponding to an ndg URI 
    186         NB, not sure if this method is actually used anywhere - since get is  
    187         usually done via ndgRetrieve  
    188         ''' 
    189         if self.config is None:  
    190             return None 
    191         from ndg.common.src.dal.ndgRetrieve import ndgRetrieve 
    192         status,xmlh = ndgRetrieve(self, self.config,  
    193                                   discovery = self.useDiscoveryService) 
    194         if status: 
    195             return xmlh 
    196         else: 
    197             return status 
     183 
    198184         
    199185    def __str__(self): 
Note: See TracChangeset for help on using the changeset viewer.