Ignore:
Timestamp:
23/03/07 12:42:12 (14 years ago)
Author:
lawrence
Message:

Improved parameter handling, and better test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/ndgSearch.py

    r2260 r2315  
    110110            result=searchResult.Documents.Document[0] 
    111111        else: 
    112             result=searchResult._statusMessage 
     112            raise ValueError('Error retrieving [%s] was [%s]'%(document,searchResult._statusMessage)) 
     113            #result=searchResult._statusMessage 
    113114        return result 
    114115                    
     
    182183        j=len(responses) 
    183184        if i!=j: 
     185            print filenames 
    184186            raise ValueError,'Internal inconsistency in search return [hits:%s!=responses:%s]'%(i,j) 
    185187        indices=range(i) 
     
    224226        ''' Test obtaining a specific document which had better exist ''' 
    225227        doc='noc.soton.ac.uk__DIF__NOCSDAT100.xml' 
     228        #doc='ndg.noc.soton.ac.uk__DIF__NOCSDAT274.xml' 
    226229        s=ndgSearch() 
    227230        r=s.getDoc(doc) 
Note: See TracChangeset for help on using the changeset viewer.