Ignore:
Timestamp:
18/04/07 08:36:04 (13 years ago)
Author:
lawrence
Message:

Handling empty documents and errors from DIF loading better

File:
1 edited

Legend:

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

    r2411 r2417  
    8989            else: 
    9090                for i in self.wrapTarget(environ,start_response): response+=str(i) 
     91            failure=0 
    9192        except Exception,e: 
    9293            response+='''<p> Unable to fufill request, probably an error in the metadata record.  
     
    9596            body+=str(environ) 
    9697            mailError('b.n.lawrence@rl.ac.uk','Discovery/Browse Error',body,server=self.mailServer) 
    97             start_response('500 OK', [('Content-Type', 'text/html'),('charset','utf-8')]) 
     98            failure=1 
    9899        if footer: response+=self.footer 
     100        if failure: start_response('500 OK', [('Content-Type', 'text/html'),('charset','utf-8')]) 
    99101        #currently need to coerce response into a string for flup ... 
    100102        return [response] 
Note: See TracChangeset for help on using the changeset viewer.