Changeset 7734 for ndgCommon


Ignore:
Timestamp:
18/11/10 17:14:13 (9 years ago)
Author:
sdonegan
Message:

Update to allow feedclient to work with iso recs

File:
1 edited

Legend:

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

    r5184 r7734  
    2929        logging.debug("Building and running xquery") 
    3030        xquery = self.resources.createXQuery(queryType, targetCollection, providerID, localID) 
     31                
    3132        results = self.client.runQuery(xquery, useChunked = useChunked) 
    3233        logging.debug("Returning results from xquery") 
     
    4647        logging.debug("Retrieving doc with providerID:'%s', docType:'%s', localID:'%s', collection:'%s'" \ 
    4748                      %(providerID,docType,localID,targetCollection)) 
    48          
     49        
    4950        if not self.resources.knownQueries.has_key(docType): 
    5051            raise ValueError("Unrecognised document type - '%s'" %docType) 
     
    7273        results = self.buildAndRunQuery(xqtype, targetCollection, 
    7374                                        providerID, localID) 
     75         
    7476        if len(results) == 0: 
    7577            raise ValueError(self.NO_DOCS_FOUND_ERROR) 
     78            #raise ValueError("oops!!") 
    7679        # NB, if retrieving backups, just get return first doc found - if we 
    7780        # need more granularity here, we can implement the functionality when required 
Note: See TracChangeset for help on using the changeset viewer.