Changeset 4985


Ignore:
Timestamp:
18/02/09 10:42:01 (10 years ago)
Author:
cbyrom
Message:

Add getNDGDoc method to the interfacesearchclient - since this is a
universally used method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/clients/interfacesearchclient.py

    r4918 r4985  
    4949                                  "been implemented yet") 
    5050 
     51 
     52    def getNDGDoc(self, providerID, docType, localID, targetCollection = "/"): 
     53        ''' 
     54        Retrieve the document represented by an ndgURI 
     55        @param providerID: ID of the provider of the metadata 
     56        @param docType: document type - see ndgObject for valid types 
     57        @param localID: local ID of the ndg document to retrieve 
     58        @keyword targetCollection: collection in XML db to look for doc in.  Default = '/' 
     59        - i.e. the base collection  
     60        @return document matching the ndgURI 
     61        ''' 
     62        raise NotImplementedError("This is an interface class and this method has not " + \ 
     63                                  "been implemented yet") 
Note: See TracChangeset for help on using the changeset viewer.