Ignore:
Timestamp:
23/03/07 14:58:25 (14 years ago)
Author:
lawrence
Message:

Better error handling, better parameter showing. Shell example
javascript as an initial step to using the Vocabserver.

File:
1 edited

Legend:

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

    r2315 r2319  
    127127        DocList.Document=self.documents 
    128128        request.Format=format 
    129          
    130129        result=self.server.doPresent(request) 
    131130        if result._status: 
    132131            docs=result.Documents.Document 
    133132        else: 
    134             docs=[] 
    135          
     133            raise ValueError('Error retrieving [%s] was [%s]'% 
     134                        (self.documents,result._statusMessage)) 
    136135        if self.logger: 
    137136            etime=time.time()-itime 
     
    139138 
    140139        return docs 
    141              
    142140             
    143141    def __xmlerror(self,docmessage): 
Note: See TracChangeset for help on using the changeset viewer.